minor test the developer cache first before digging into email
This commit is contained in:
parent
b7023da894
commit
650ec9c73f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue