Esempio n. 1
0
 private static void DeleteRoleRelation(int roleId)
 {
     dal.DeleteFieldPermissionFromRoles(roleId, 0, null);
     dal.DeleteNodePermissionFromRoles(roleId, -2);
     dal.DeletePermissionFromRoles(roleId);
     dal.DeleteSpecialPermissionFromRoles(roleId, 0);
 }
 private static void DeleteFieldPermissionFormRoles(int roleId, int modelId, string fieldName)
 {
     dal.DeleteFieldPermissionFromRoles(roleId, modelId, fieldName);
 }