mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 19:14:32 -05:00
Always instantiate Permissions object
To follow current logic
This commit is contained in:
parent
d1fff74504
commit
cff36e0462
@ -63,7 +63,7 @@ public static class ClaimsExtensions
|
|||||||
AccessSecretsManager = hasClaim(Claims.SecretsManagerAccess),
|
AccessSecretsManager = hasClaim(Claims.SecretsManagerAccess),
|
||||||
Permissions = role == OrganizationUserType.Custom
|
Permissions = role == OrganizationUserType.Custom
|
||||||
? GetPermissionsFromClaims(hasClaim)
|
? GetPermissionsFromClaims(hasClaim)
|
||||||
: null
|
: new Permissions()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user