user can self assign to unassigned documents
This commit is contained in:
parent
1bbe74dda9
commit
f435cdd303
@ -79,8 +79,11 @@ export class PermissionsService {
|
|||||||
|
|
||||||
if (precondition) {
|
if (precondition) {
|
||||||
if (
|
if (
|
||||||
(fileStatus.isUnassigned || (fileStatus.isUnderReview && !this.isFileReviewer())) &&
|
(fileStatus.isUnassigned ||
|
||||||
(this.isApprover() || isTheOnlyReviewer)
|
(fileStatus.isUnderReview && !this.isFileReviewer(fileStatus))) &&
|
||||||
|
(this.isApprover() ||
|
||||||
|
isTheOnlyReviewer ||
|
||||||
|
(this.isDossierReviewer() && fileStatus.isUnassigned))
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -134,7 +137,7 @@ export class PermissionsService {
|
|||||||
return dossier?.approverIds.indexOf(user.id) >= 0;
|
return dossier?.approverIds.indexOf(user.id) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
isReviewer(dossier = this._activeDossier, user = this.currentUser): boolean {
|
isDossierReviewer(dossier = this._activeDossier, user = this.currentUser): boolean {
|
||||||
return this.isDossierMember(dossier, user) && !this.isApprover(dossier, user);
|
return this.isDossierMember(dossier, user) && !this.isApprover(dossier, user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user