mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Give superuser full doc permissions
This commit is contained in:
@@ -46,7 +46,12 @@ export class PermissionsService {
|
||||
}
|
||||
|
||||
public currentUserOwnsObject(object: ObjectWithPermissions): boolean {
|
||||
return !object || !object.owner || object.owner === this.currentUser.id
|
||||
return (
|
||||
!object ||
|
||||
!object.owner ||
|
||||
this.currentUser.is_superuser ||
|
||||
object.owner === this.currentUser.id
|
||||
)
|
||||
}
|
||||
|
||||
public currentUserHasObjectPermissions(
|
||||
|
Reference in New Issue
Block a user