We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44cd512 commit e0e373fCopy full SHA for e0e373f
1 file changed
src/Libraries/Permission.cs
@@ -762,6 +762,22 @@ public bool GroupExists(string groupName)
762
return !string.IsNullOrEmpty(groupName) && (groupName.Equals("*") || groupsData.ContainsKey(groupName));
763
}
764
765
+ /// <summary>
766
+ /// Returns the data for the specified group
767
+ /// </summary>
768
+ /// <param name="groupName"></param>
769
+ /// <returns></returns>
770
+ public GroupData GetGroupData(string groupName)
771
+ {
772
+ if (!groupsData.TryGetValue(groupName, out GroupData groupData))
773
774
+ return null;
775
+ }
776
+
777
+ // Return the data
778
+ return groupData;
779
780
781
/// <summary>
782
/// Returns existing groups
783
/// </summary>
0 commit comments