We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9261b6e commit d7e6db4Copy full SHA for d7e6db4
security-admin/src/main/java/org/apache/ranger/service/XGroupUserService.java
@@ -305,8 +305,11 @@ private void updateGroupUserMappings() {
305
xxGroupUser = new XXGroupUser();
306
groupUserMappingExists = false;
307
}
308
- xxGroupUser.setAddedByUserId(createdByUserId);
309
- xxGroupUser.setUpdatedByUserId(createdByUserId);
+ XXPortalUser xXPortalUser = daoManager.getXXPortalUser().getById(createdByUserId);
+ if (xXPortalUser != null) {
310
+ xxGroupUser.setAddedByUserId(createdByUserId);
311
+ xxGroupUser.setUpdatedByUserId(createdByUserId);
312
+ }
313
314
if (groupUserMappingExists) {
315
xxGroupUser = getDao().update(xxGroupUser);
0 commit comments