mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Inherited permissions
This commit is contained in:
parent
927a9781ad
commit
355efadf87
6 changed files with 68 additions and 18 deletions
|
|
@ -42,7 +42,7 @@ export class PermissionsService {
|
|||
return this.permissions.includes(this.getPermissionCode(permission))
|
||||
}
|
||||
|
||||
private getPermissionCode(permission: PaperlessPermission): string {
|
||||
public getPermissionCode(permission: PaperlessPermission): string {
|
||||
return permission.type.replace('%s', permission.action)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue