mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Address CodeQL
This commit is contained in:
@@ -47,7 +47,7 @@ export class PermissionsSelectComponent
|
||||
set inheritedPermissions(inherited: string[]) {
|
||||
// remove <app_label>. from permission strings
|
||||
this._inheritedPermissions = inherited?.length
|
||||
? inherited.map((p) => p.replace(/.+\./, ''))
|
||||
? inherited.map((p) => p.replace(/^\w+\./g, ''))
|
||||
: []
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user