public static bool HasRight( this HtmlHelper htmlHelper, object context, SecureActivity activity) { return(true); //SecurityService service = new SecurityService(); }
public static bool HasRight( this HtmlHelper htmlHelper, object context, SecureActivity activity) { return true; //SecurityService service = new SecurityService(); }
public bool HasRight(SecureActivity activity, UserProfileInfo user, object context) { if (user == null) { return false; } if (this.hasRightMethods.ContainsKey(activity)) { return this.hasRightMethods[activity](user, context); } else return false; }
public bool HasRight(SecureActivity activity, UserProfileInfo user, object context) { if (user == null) { return(false); } if (this.hasRightMethods.ContainsKey(activity)) { return(this.hasRightMethods[activity](user, context)); } else { return(false); } }