2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: allow "developer" account flagging via developers table

This mechanism for flagging developer accounts will eventually replace
DISCOURSE_DEVELOPER_EMAILS
This commit is contained in:
Sam 2016-07-28 10:14:06 +10:00
parent c6dbaca0dc
commit ab68e0c9db
4 changed files with 51 additions and 1 deletions

View file

@ -74,7 +74,8 @@ class Guardian
(
Rails.configuration.respond_to?(:developer_emails) &&
Rails.configuration.developer_emails.include?(@user.email)
)
) ||
Developer.user_ids.include?(@user.id)
)
end