Skip to content

Commit

Permalink
reverted security inject changes
Browse files Browse the repository at this point in the history
Signed-off-by: Petar Dzepina <[email protected]>
  • Loading branch information
petardz committed May 19, 2023
1 parent 514bfac commit 2a1cd81
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,7 @@ class IndexManagementSecurityContext(
*/
override fun updateThreadContext(context: CoroutineContext) {
logger.debug("Setting security context in thread ${Thread.currentThread().name} for job $id")
if (user == null) {
injector.injectRoles(DEFAULT_INJECT_ROLES)
} else {
injector.injectRoles(user.roles)
injector.injectUser(user.name)
}
injector.injectRoles(if (user == null) DEFAULT_INJECT_ROLES else user.roles)
injector.injectProperty(INTERNAL_REQUEST, true)
}

Expand Down

0 comments on commit 2a1cd81

Please sign in to comment.