Move disable default auto claim check

This commit is contained in:
Theodor S. Midtlien
2026-09-18 17:15:07 +02:00
parent cda3da5ed1
commit 9beecf7d69
+2 -2
View File
@@ -652,7 +652,7 @@ func (s *ServiceManager) ClaimLegacyProfiles(id ipcauth.Identity) {
}
func (s *ServiceManager) ClaimDefaultProfileIfNeeded(id ipcauth.Identity) {
if !id.Known() || ipcauth.IsPrivilegedCaller(id) {
if !id.Known() || ipcauth.IsPrivilegedCaller(id) || !defaultProfileClaimDisabled() {
return
}
@@ -672,7 +672,7 @@ func (s *ServiceManager) ClaimDefaultProfileIfNeeded(id ipcauth.Identity) {
}
}
if unowned && !defaultProfileClaimDisabled() && isConsoleUser(id) {
if unowned && isConsoleUser(id) {
principal := ipcauth.OwnerPrincipalForIdentity(id)
parsed, ok := ipcauth.ParsePrincipal(principal)
if !ok {