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:
parent
c6dbaca0dc
commit
ab68e0c9db
4 changed files with 51 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue