First, ensure global perms even if has edit perms

This commit is contained in:
shamoon 2024-10-17 11:46:08 -07:00
parent de95b296a0
commit 99ceb7068a
No known key found for this signature in database

View File

@ -1020,10 +1020,14 @@ export class DocumentDetailComponent
} }
return ( return (
!this.document || !this.document ||
this.permissionsService.currentUserHasObjectPermissions( (this.permissionsService.currentUserCan(
PermissionAction.Change, PermissionAction.Change,
doc PermissionType.Document
) ) &&
this.permissionsService.currentUserHasObjectPermissions(
PermissionAction.Change,
doc
))
) )
} }