Skip to content

Commit

Permalink
Merge pull request #191 from Cognifide/bugfix/apm-does-not-work-for-u…
Browse files Browse the repository at this point in the history
…sers-from-ad

Fixed scripts execution for users from AD.
  • Loading branch information
mjedraszczyk authored Jul 12, 2019
2 parents b968c01 + 14870fb commit 9ace995
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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 9ace995

Please sign in to comment.