Skip to content

Commit

Permalink
Merge branch '3.0' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Mar 20, 2018
2 parents 36aa4c1 + d3f7e61 commit 047e45e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,7 @@ public function runJob($jobId) {

Config::unnest();

// okay let's reset our user if we've got an original
if ($runAsUser && $originalUser) {
if ($runAsUser) {
Session::clear("loggedInAs");
if ($originalUser) {
Session::set("loggedInAs", $originalUser->ID);
Expand Down

0 comments on commit 047e45e

Please sign in to comment.