Skip to content

Commit

Permalink
avniproject/avni-client#1058 | add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Sep 26, 2023
1 parent 45eabcd commit 5e49ae5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ public AvniMetaDataRuleService(GroupRoleRepository groupRoleRepository) {
this.groupRoleRepository = groupRoleRepository;
}

/**
* **IMPORTANT** : The response of this method only indicates whether the SubjectType is ** capable ** of being configured for Direct Assignment.
* It **does not** indicate whether the SubjectType has been configured by the organisation administrators to be directly assignable.
*
* @param subjectType
* @return Boolean value indicating whether the SubjectType is capable of being configured for Direct Assignment.
*/
public boolean isDirectAssignmentAllowedFor(SubjectType subjectType) {
if (subjectType.isGroup()) return true;

Expand Down

0 comments on commit 5e49ae5

Please sign in to comment.