예제 #1
0
 public static bool AccessTest(UserCredit discount, ModelGeneralAttribute attr)
 {
     if (attr.Acl)
     {
         if (LS.CurrentShop != null)
         {
             return(discount.ShopID == LS.CurrentShop.ID);
         }
         return(false);
     }
     ;
     return(true);
 }
예제 #2
0
 public static string InsertGeneralError(UserCredit credit)
 {
     return(RP.S("Admin.UserCredit.Create.CantCreateCredits"));
 }
예제 #3
0
 public static string DuplicateError(UserCredit credit)
 {
     return(RP.S("Admin.UserCredit.Create.ThisUserAndShopAlreadyAdded"));
 }