added stupid condition for delete
This commit is contained in:
parent
a51089c344
commit
a30fb9e970
@ -43,7 +43,7 @@ export class PermissionsService {
|
||||
}
|
||||
|
||||
canDeleteFile(fileStatus = this._activeFile, dossier?: DossierWrapper): boolean {
|
||||
return this.isOwner(dossier) || fileStatus.isUnassigned;
|
||||
return (this.isOwner(dossier) && !fileStatus.isApproved) || fileStatus.isUnassigned;
|
||||
}
|
||||
|
||||
canAssignToSelf(fileStatus = this._activeFile): boolean {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user