Skip to content

Commit

Permalink
Merge pull request #1704 from datadryad/update-doorkeeper-config
Browse files Browse the repository at this point in the history
fixed Doorkeeper initializer
  • Loading branch information
ryscher authored Jun 18, 2024
2 parents e040a1f + 4570388 commit c3e1a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/doorkeeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# # Put your admin authentication logic here.
# # Example implementation:
# Admin.find_by_id(session[:admin_id]) || redirect_to(new_admin_session_url)
(current_user && (current_user.role == 'superuser')) || redirect_to(stash_url_helpers.choose_login_path)
(current_user && current_user.superuser?) || redirect_to(stash_url_helpers.choose_login_path)
end

# Authorization Code expiration time (default 10 minutes).
Expand Down

0 comments on commit c3e1a24

Please sign in to comment.