コード例 #1
0
 /// <summary>
 /// </summary>
 /// <param name="context"></param>
 /// <param name="resource"></param>
 /// <param name="resOperator"></param>
 /// <returns></returns>
 public static bool HasRight(this MemberShipContext context, object resource, Enum resOperator)
 {
     return(context.HasRight(context.CurrentUser(), resource, resOperator));
 }
コード例 #2
0
 public bool HasRight(User user)
 {
     return(_context.HasRight(user, Resource, OperatorValue));
 }
コード例 #3
0
 /// <summary>
 /// </summary>
 /// <param name="context"></param>
 /// <param name="resType"></param>
 /// <param name="id"></param>
 /// <param name="resOperator"></param>
 /// <returns></returns>
 public static bool HasRight(this MemberShipContext context, Type resType, object id, Enum resOperator)
 {
     return(context.HasRight(context.CurrentUser(), resType, id, resOperator));
 }