Add sdg manager section to admin
Allow a user to become an sdg manager
This commit is contained in:
@@ -95,6 +95,7 @@ class User < ApplicationRecord
|
||||
scope :administrators, -> { joins(:administrator) }
|
||||
scope :moderators, -> { joins(:moderator) }
|
||||
scope :organizations, -> { joins(:organization) }
|
||||
scope :sdg_managers, -> { joins(:sdg_manager) }
|
||||
scope :officials, -> { where("official_level > 0") }
|
||||
scope :male, -> { where(gender: "male") }
|
||||
scope :female, -> { where(gender: "female") }
|
||||
|
||||
Reference in New Issue
Block a user