mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-24 16:48:55 +00:00
Refactor permissions API endpoints, UI group permissions
This commit is contained in:
1 parent
f2d635671d
commit
211fbf0cf6
29 files changed
+353
-139
No files matched your search
@@ -222,9 +222,7 @@ export abstract class ManagementListComponent<T extends ObjectWithId>
|
||||
}
|
||||
|
||||
userCanDelete(object: ObjectWithPermissions): boolean {
|
||||
return (
|
||||
!object.owner || this.permissionsService.currentUserIsOwner(object.owner)
|
||||
)
|
||||
return this.permissionsService.currentUserOwnsObject(object)
|
||||
}
|
||||
|
||||
userCanEdit(object: ObjectWithPermissions): boolean {
|
||||
|
||||
Reference in new issue
Block a user