Ejemplo n.º 1
0
 public static bool HasRight(
     this HtmlHelper htmlHelper,
     object context,
     SecureActivity activity)
 {
     return(true);
     //SecurityService service = new SecurityService();
 }
Ejemplo n.º 2
0
 public static bool HasRight(
     this HtmlHelper htmlHelper,
     object context,
     SecureActivity activity)
 {
     return true;
     //SecurityService service = new SecurityService();
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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);
     }
 }