/// <summary> /// Returns all user and group ids that have any explicit permissions on the given entity or its subtree. /// </summary> /// <param name="entityId">Id of the entity.</param> /// <param name="level">Filtering by the permission value. It can be Allowed, Denied, AllowedOrDenied.</param> protected IEnumerable <int> GetRelatedIdentities(int entityId, PermissionLevel level) { return(PermissionQuery.GetRelatedIdentities(this, entityId, level)); }
/// <summary> /// Returns all user and group ids that have any explicit permission on the given entity and its subtree. /// </summary> /// <param name="entityId">Id of the entity.</param> /// <param name="level">Filtering by the permission value. It can be Allowed, Denied, AllowedOrDenied.</param> /// <param name="permissions">Only that entities appear in the output that have permission settings in connection with the given permissions.</param> protected IEnumerable <int> GetRelatedIdentities(int entityId, PermissionLevel level, IEnumerable <PermissionTypeBase> permissions) { return(PermissionQuery.GetRelatedIdentities(this, entityId, level, permissions)); }
/// <summary> /// Returns all user and group ids that have any explicit permissions on the given entity or its subtree. /// </summary> /// <param name="entityId">Id of the entity.</param> /// <param name="level">Filtering by the permission value. It can be Allowed, Denied, AllowedOrDenied.</param> public virtual IEnumerable <int> GetRelatedIdentities(int entityId, PermissionLevel level) { return(_permissionQuery.GetRelatedIdentities(this, entityId, level)); }