Skip to content

Commit

Permalink
Merge pull request #1785 from etalab/adding-admin-account-to-staging
Browse files Browse the repository at this point in the history
Adding admin account to staging
  • Loading branch information
skelz0r authored Jan 23, 2025
2 parents 79d5b2d + 839dd56 commit 6683ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def editor?
def admin?
if Rails.env.production?
Rails.application.credentials.admin_emails.include?(email)
elsif Rails.env.development?
elsif Rails.env.development? || Rails.env.staging?
%w[
[email protected]
[email protected]
Expand Down

0 comments on commit 6683ba2

Please sign in to comment.