Beispiel #1
0
 public static ACLAvailableModel Create(ACLRoleModel role, ACLRule rule, string operation, Type type)
 {
     return new ACLAvailableModel
                {
                    Role = role,
                    IsAllowed = rule.CanAccess(role.Role, operation, type == null ? null : type.FullName)
                };
 }
Beispiel #2
0
 public static ACLAvailableModel Create(ACLRoleModel role, ACLRule rule, string operation, Type type)
 {
     return(new ACLAvailableModel
     {
         Role = role,
         IsAllowed = rule.CanAccess(role.Role, operation, type == null ? null : type.FullName)
     });
 }