First, ensure global perms even if has edit perms
This commit is contained in:
parent
de95b296a0
commit
99ceb7068a
@ -1020,10 +1020,14 @@ export class DocumentDetailComponent
|
||||
}
|
||||
return (
|
||||
!this.document ||
|
||||
this.permissionsService.currentUserHasObjectPermissions(
|
||||
(this.permissionsService.currentUserCan(
|
||||
PermissionAction.Change,
|
||||
doc
|
||||
)
|
||||
PermissionType.Document
|
||||
) &&
|
||||
this.permissionsService.currentUserHasObjectPermissions(
|
||||
PermissionAction.Change,
|
||||
doc
|
||||
))
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user