mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-11 10:37:12 +00:00
fix object creation, user serialization, user creation
This commit is contained in:
1 parent
8fad13b500
commit
1adb5e724d
4 files changed
+15
-6
No files matched your search
@@ -45,7 +45,7 @@ export class PermissionsService {
|
||||
}
|
||||
|
||||
public currentUserOwnsObject(object: ObjectWithPermissions): boolean {
|
||||
return !object || !object.owner || object.owner.id === this.currentUser.id
|
||||
return !object || !object.owner || object.owner === this.currentUser.id
|
||||
}
|
||||
|
||||
public currentUserHasObjectPermissions(
|
||||
|
||||
Reference in new issue
Block a user