Give superuser full doc permissions

This commit is contained in:
shamoon
2023-03-03 19:50:06 -08:00
parent 2fe7f8be46
commit 320537a054
6 changed files with 25 additions and 13 deletions

View File

@@ -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(