Add resource refreshing logic

pull/268/head
Rajitha Kumara 1 year ago
parent 14d0c67caf
commit 1f0681b653

@ -773,6 +773,7 @@ public class APIPublisherServiceImpl implements APIPublisherService {
authorizationManager.clearRoleAuthorization(role); authorizationManager.clearRoleAuthorization(role);
for (String permission : permissions) { for (String permission : permissions) {
authorizationManager.authorizeRole(role, permission, CarbonConstants.UI_PERMISSION_ACTION); authorizationManager.authorizeRole(role, permission, CarbonConstants.UI_PERMISSION_ACTION);
authorizationManager.refreshAllowedRolesForResource(permission);
} }
} }

Loading…
Cancel
Save