mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Fix superuser initial disable individual perms, permissions select setup
This commit is contained in:
parent
629a5dd61e
commit
bb8a0d26e2
3 changed files with 13 additions and 4 deletions
|
|
@ -64,8 +64,9 @@ export class PermissionsSelectComponent
|
|||
}
|
||||
|
||||
writeValue(permissions: string[]): void {
|
||||
this.permissions = permissions
|
||||
const allPerms = this._inheritedPermissions.concat(permissions)
|
||||
this.permissions = permissions ?? []
|
||||
const allPerms = this._inheritedPermissions.concat(this.permissions)
|
||||
|
||||
allPerms.forEach((permissionStr) => {
|
||||
const { actionKey, typeKey } =
|
||||
this.permissionsService.getPermissionKeys(permissionStr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue