mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Address CodeQL
This commit is contained in:
parent
2ec695fba7
commit
b99422da12
2 changed files with 1 additions and 2 deletions
|
|
@ -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, ''))
|
||||
: []
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue