Skip to content

Commit

Permalink
Merge pull request #154 from stephenmcm/2.10
Browse files Browse the repository at this point in the history
Fix(Service) ensure run as user is cleared at the end of each runJob
  • Loading branch information
nyeholt authored Jan 17, 2018
2 parents 84cabea + b58f6d0 commit 0f16f2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ sudo: false
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
Expand Down
3 changes: 1 addition & 2 deletions code/services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,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 0f16f2d

Please sign in to comment.