mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
minor test the developer cache first before digging into email
This commit is contained in:
@@ -70,12 +70,13 @@ class Guardian
|
|||||||
def is_developer?
|
def is_developer?
|
||||||
@user &&
|
@user &&
|
||||||
is_admin? &&
|
is_admin? &&
|
||||||
(Rails.env.development? ||
|
(
|
||||||
|
Rails.env.development? ||
|
||||||
|
Developer.user_ids.include?(@user.id) ||
|
||||||
(
|
(
|
||||||
Rails.configuration.respond_to?(:developer_emails) &&
|
Rails.configuration.respond_to?(:developer_emails) &&
|
||||||
Rails.configuration.developer_emails.include?(@user.email)
|
Rails.configuration.developer_emails.include?(@user.email)
|
||||||
) ||
|
)
|
||||||
Developer.user_ids.include?(@user.id)
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user