Skip to content

Commit

Permalink
Fix user deletion issue in the sub organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanChathusanda93 committed Mar 18, 2024
1 parent 188e191 commit 2ea92b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,9 @@ public static void updateSystemRoleV2MetaData(int tenantId) {
*/
public static String getLoggedInUserID() throws CharonException {

if (PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserId() != null) {
return PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserId();
}
try {
String loggedInUserName = PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
String loggedInUserTenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
Expand Down

0 comments on commit 2ea92b7

Please sign in to comment.