mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-01 18:37:42 -05:00
Inherited permissions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user