/// <summary> /// Returns <see langword="true" /> if the user is in a role /// explicitly allowed read access. /// </summary> /// <param name="principal">A <see cref="System.Security.Principal.IPrincipal" /> /// representing the user.</param> /// <returns><see langword="true" /> if the user is allowed read access.</returns> /// <remarks></remarks> public bool IsReadAllowed(IPrincipal principal) { return(AuthorizationRulesManager.PrincipalRoleInList(principal, ReadAllowed)); }
/// <summary> /// Returns True if the user is in a role /// explicitly denied execute access. /// </summary> /// <param name="principal">A System.Security.Principal.IPrincipal representing the user.</param> /// <returns>True if the user is denied execute access.</returns> /// <remarks></remarks> public bool IsExecuteDenied(IPrincipal principal) { return(AuthorizationRulesManager.PrincipalRoleInList(principal, ExecuteDenied)); }