minor test the developer cache first before digging into email

This commit is contained in:
Sam 2018-01-17 15:50:18 +11:00
parent b7023da894
commit 650ec9c73f
1 changed files with 4 additions and 3 deletions

View File

@ -70,12 +70,13 @@ class Guardian
def is_developer?
@user &&
is_admin? &&
(Rails.env.development? ||
(
Rails.env.development? ||
Developer.user_ids.include?(@user.id) ||
(
Rails.configuration.respond_to?(:developer_emails) &&
Rails.configuration.developer_emails.include?(@user.email)
) ||
Developer.user_ids.include?(@user.id)
)
)
end