Example #1
0
 public static bool HasRightIncludingGroups(this IPermissionStore permissionStore, Guid nodeID, Guid subjectID,
                                            string spec)
 {
     return(permissionStore.HasRight(nodeID, subjectID, spec) ||
            permissionStore.GetGroups(subjectID)
            .Any(groupID => permissionStore.HasRight(nodeID, groupID, spec)));
 }