Skip to content

Commit

Permalink
Merge pull request #539 from ShanChathusanda93/sub-org-user-delete-fi…
Browse files Browse the repository at this point in the history
…x-branch

Fix user deletion issue in the sub organizations
  • Loading branch information
ShanChathusanda93 committed Mar 19, 2024
2 parents 188e191 + 2ea92b7 commit 08af9f0
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 08af9f0

Please sign in to comment.