Skip to content

Commit

Permalink
Merge pull request #18145 from d-m-u/add_scope_to_system_context_requ…
Browse files Browse the repository at this point in the history
…ester

system_context_requester User needs to be scoped by region
  • Loading branch information
bdunne authored Oct 31, 2018
2 parents 079996b + 9796a7c commit e52307d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mixins/retirement_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def system_context_requester
User.find(evm_owner_id)
else
$log.info("System context defaulting to admin user because owner of #{name} not set.")
User.find_by(:userid => 'admin')
User.in_my_region.find_by(:userid => 'admin')
end
end

Expand Down

0 comments on commit e52307d

Please sign in to comment.