RED-2929: Exclude pages permissions

This commit is contained in:
Adina Țeudan 2021-12-09 17:59:55 +02:00
parent 7dd6993f3f
commit 0d4fbcfe19
2 changed files with 2 additions and 3 deletions

View File

@ -127,8 +127,7 @@ export class PermissionsService {
} }
canExcludePages(file: File): boolean { canExcludePages(file: File): boolean {
const dossier = this._getDossier(file); return this.isFileAssignee(file);
return (file.isUnderReview || file.isUnderApproval) && (this.isFileAssignee(file) || this.isApprover(dossier));
} }
canDeleteComment(comment: IComment, file: File) { canDeleteComment(comment: IComment, file: File) {