[ACA-3960] FE - Users that are part of a candidate group should not be able to see 'Assignee' property as editable when on that user task candidate group was set as assignment (#6159)

* [ACA-3960] FE - Users that are part of a candidate group should not be able to see 'Assignee' property as editable when on that user task candidate group was set as assignment

* * Added description
This commit is contained in:
siva kumar
2020-09-25 15:05:07 +05:30
committed by GitHub
parent b0a46f7eac
commit c84ef7318f
2 changed files with 41 additions and 15 deletions

View File

@@ -318,8 +318,12 @@ export class TaskHeaderCloudComponent implements OnInit, OnDestroy, OnChanges {
return this.taskCloudService.isTaskEditable(this.taskDetails);
}
/**
* as per [ACA-3960] it required an empty array argument for now
* Empty array will be replaced with candidateGroups in feature
*/
isAssigneePropertyClickable(): boolean {
return this.taskCloudService.isAssigneePropertyClickable(this.taskDetails, this.candidateUsers, this.candidateGroups);
return this.taskCloudService.isAssigneePropertyClickable(this.taskDetails, this.candidateUsers, []);
}
private isValidSelection(filteredProperties: string[], cardItem: CardViewBaseItemModel): boolean {