You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor role cleanup and privilege logic
Implemented cleanupRolesNotInMapping in RoleService to remove roles not present in the given mapping and delete associated user-role relationships. Enhanced privilege configuration with better rule initialization and optimized gate-setting logic. Updated logging levels and replaced redundant code blocks for clarity.
* Clear privileges before deleting roles in cleanupRolesNotInMapping
* Update role cleanup logic to use managedRoles and improve logging
Copy file name to clipboardExpand all lines: pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/impl/AccessRuleService.java
+23-35Lines changed: 23 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -383,8 +383,8 @@ public boolean extractAndCheckRule(AccessRule accessRule, Object parsedRequestBo
case (AccessRule.TypeNaming.NOT_EQUALS) -> !value.equals(requestBodyValue);
569
-
case (AccessRule.TypeNaming.ANY_EQUALS), (AccessRule.TypeNaming.ALL_EQUALS) -> value.equals(requestBodyValue);
570
-
case (AccessRule.TypeNaming.ALL_CONTAINS), (AccessRule.TypeNaming.ANY_CONTAINS), (AccessRule.TypeNaming.ALL_CONTAINS_OR_EMPTY) -> requestBodyValue.contains(value);
571
-
case (AccessRule.TypeNaming.ALL_CONTAINS_IGNORE_CASE), (AccessRule.TypeNaming.ALL_CONTAINS_OR_EMPTY_IGNORE_CASE) -> requestBodyValue.toLowerCase().contains(value.toLowerCase());
570
+
case (AccessRule.TypeNaming.ANY_EQUALS), (AccessRule.TypeNaming.ALL_EQUALS) ->
571
+
value.equals(requestBodyValue);
572
+
case (AccessRule.TypeNaming.ALL_CONTAINS), (AccessRule.TypeNaming.ANY_CONTAINS),
Copy file name to clipboardExpand all lines: pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/impl/PrivilegeService.java
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ public Privilege save(Privilege privilege) {
0 commit comments