mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Added role scopes to roleable
This commit is contained in:
@@ -61,9 +61,6 @@ class User < ActiveRecord::Base
|
||||
# This is just used to pass some information into the serializer
|
||||
attr_accessor :notification_channel_position
|
||||
|
||||
scope :admins, -> { where(admin: true) }
|
||||
scope :moderators, -> { where(moderator: true) }
|
||||
scope :staff, -> { where("moderator or admin ") }
|
||||
scope :blocked, -> { where(blocked: true) } # no index
|
||||
|
||||
module NewTopicDuration
|
||||
|
||||
Reference in New Issue
Block a user