-
Notifications
You must be signed in to change notification settings - Fork 65
User roles
Justin Coyne edited this page Dec 6, 2024
·
2 revisions
Access to spotlight is managed via a table roles
(Spotlight::Role
) in the database.
You can elevate a user to a site-wide super admin by granting this role:
user = User.first
user.superadmin?
# => false
user.roles.create(role: 'admin', resource: Spotlight::Site.instance)
user.superadmin?
# => true
Other access is granted per-exhibit.
exhibit = Spotlight::Exhibit.first
user.roles.create(role: 'admin', resource: exhibit)
The available roles are in Spotlight::Engine.config.exhibit_roles
Spotlight::Engine.config.exhibit_roles
# => ["admin", "curator", "viewer"]
Configuration
- Blacklight
- Page widgets
- Resource scenarios
- Image sizes
- Queueing backends
- Creating a theme
- Configure S3 data storage
- Translations and Internationalization
- Adding new navigation menu items
Case studies
Building an exhibit
- Quickstart guide
- Configuration settings
- Adding and managing items
- Creating feature pages
- Creating about pages
- Creating browse categories
- Exhibit on exhibits - Stanford specific, yet generalizable
Development