Revision f02dc88f
Added by Marek Hulán over 7 years ago
app/models/concerns/taxonomix.rb | ||
---|---|---|
end
|
||
|
||
def admin_ids
|
||
User.unscoped.where(:admin => true).pluck(:id) if self == User
|
||
User.unscoped.only_admin.pluck(:id) if self == User
|
||
end
|
||
|
||
def scope_by_taxable_ids(scope)
|
Also available in: Unified diff
Fixes #17458 - include user group admins
(cherry picked from commit a55d7b6440e42f659d90691340e2e767a4be7e56)