Skip to content

Commit

Permalink
Merge pull request #7921 from vpereira/fix_7743
Browse files Browse the repository at this point in the history
Pass user (possibly nobody) to pundit
  • Loading branch information
hennevogel authored Jul 17, 2019
2 parents d7d1a3a + d17237b commit 726c017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/webui_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def check_ajax
end

def pundit_user
User.session! if User.session
User.possibly_nobody
end

# dialog_init is a function name called before dialog is shown
Expand Down

0 comments on commit 726c017

Please sign in to comment.