Skip to content

Commit

Permalink
Fixed scripts execution for users from AD.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjedraszczyk committed Jul 12, 2019
1 parent 1c06796 commit 3b01253
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private BackgroundJobParameters getParameters(final SlingHttpServletRequest requ
final SlingHttpServletResponse response) throws IOException {
final String searchPath = request.getParameter(FILE_REQUEST_PARAMETER);
final String modeName = request.getParameter(MODE_REQUEST_PARAMETER);
final String userName = request.getUserPrincipal().getName();
final String userName = request.getResourceResolver().getUserID();

if (StringUtils.isEmpty(searchPath)) {
ServletUtils.writeMessage(response, ERROR_RESPONSE_TYPE,
Expand Down

0 comments on commit 3b01253

Please sign in to comment.