/// <summary> /// /// </summary> /// <param name="value"></param> /// <param name="method"></param> /// <param name="returnException"></param> /// <returns></returns> public static bool hasPermission(object value, string method = null, bool returnException = true, params object[] parameters) { if (delegateHasPermission == null) { delegateHasPermission = GetSecurityConfigure.DelegateHasPermission; } if (delegateHasPermission != null) { return(delegateHasPermission(value, method, returnException, parameters)); } return(true); }
/// <summary> /// /// </summary> /// <param name="value"></param> /// <param name="method"></param> /// <param name="returnException"></param> /// <returns></returns> public static bool hasPermission(object value, string method = null, bool returnException = true, params object[] parameters) { if (delegateHasPermission == null) { delegateHasPermission = ObjectFactory.GetNamedInstance <DelegateHasPermission>("delegateHasPermission"); } if (delegateHasPermission != null) { return(delegateHasPermission(value, method, returnException, parameters)); } return(true); }