public static QueryAllowed GetQueryAllowed(object queryName) { if (!AuthLogic.IsEnabled || ExecutionMode.InGlobal) { return(QueryAllowed.Allow); } return(cache.GetAllowed(RoleEntity.Current, queryName)); }
public static bool IsAuthorized(this PermissionSymbol permissionSymbol) { AssertRegistered(permissionSymbol); if (!AuthLogic.IsEnabled || ExecutionMode.InGlobal || cache == null) { return(true); } return(cache.GetAllowed(RoleEntity.Current, permissionSymbol)); }
public static PropertyAllowed GetPropertyAllowed(Lite <RoleEntity> role, PropertyRoute property) { return(cache.GetAllowed(role, property)); }
public static OperationAllowed GetOperationAllowed(Lite <RoleEntity> role, OperationSymbol operationKey) { return(cache.GetAllowed(role, operationKey)); }