docbrown/app/lib/constants/role.rb
Vaidehi Joshi 95055b2a89
Remove pro role + expose analytics to all users via dashboard (#13156)
* Remove pro role on user, expose pro dashboard to all users as analytics

* Remove pro from Elasticsearch mappings

* Update user role docs to use :trusted over :pro

* Remove pro from Role model spec

* Remove more references to pro, as noted by @rhymes
2021-03-30 15:02:18 -07:00

31 lines
760 B
Ruby

module Constants
module Role
BASE_ROLES = [
"Warn",
"Comment Suspend",
"Suspend",
"Regular Member",
"Trusted",
].freeze
SPECIAL_ROLES = [
"Admin",
"Tech Admin",
"Super Admin",
"Resource Admin: Article",
"Resource Admin: Badge",
"Resource Admin: BadgeAchievement",
"Resource Admin: Broadcast",
"Resource Admin: ChatChannel",
"Resource Admin: Comment",
"Resource Admin: Config",
"Resource Admin: DisplayAd",
"Resource Admin: DataUpdateScript",
"Resource Admin: FeedbackMessage",
"Resource Admin: HtmlVariant",
"Resource Admin: ListingCategory",
"Resource Admin: Page",
"Resource Admin: Tag",
].freeze
end
end