forked from External/greenlight
GRN2-176: Create a role editor that allows admins to specify what permissions each role has (#709)
* Add roles editor * Add colour selection ability to roles * Add ability to assign roles to users in the UI * Remove rolify and replace it with our own custom roles implemenation * - Fix all existing roles functionality - Fix super admins * Fix bugs with new customers not have default roles * Add can't create room setting * Code improvements * Fix migration * Add tests for new methods * Translate reserved role names * Pull roles from saml/ldap * Fix rspec * Fix scrutinizer issues * Fix email promoted/demoted tests * Apply comments * Redirect directly to the main room * Add comments
This commit is contained in:
committed by
Jesus Federico
parent
02b342b157
commit
4fc1714db8
@ -46,8 +46,6 @@ Rails.application.routes.draw do
|
||||
post '/coloring_darken', to: 'admins#coloring_darken', as: :admin_coloring_darken
|
||||
post '/signup', to: 'admins#signup', as: :admin_signup
|
||||
get '/edit/:user_uid', to: 'admins#edit_user', as: :admin_edit_user
|
||||
post '/promote/:user_uid', to: 'admins#promote', as: :admin_promote
|
||||
post '/demote/:user_uid', to: 'admins#demote', as: :admin_demote
|
||||
post '/ban/:user_uid', to: 'admins#ban_user', as: :admin_ban
|
||||
post '/unban/:user_uid', to: 'admins#unban_user', as: :admin_unban
|
||||
post '/invite', to: 'admins#invite', as: :invite_user
|
||||
@ -55,6 +53,11 @@ Rails.application.routes.draw do
|
||||
post '/approve/:user_uid', to: 'admins#approve', as: :admin_approve
|
||||
post '/room_limit', to: 'admins#room_limit', as: :admin_room_limit
|
||||
post '/default_recording_visibility', to: 'admins#default_recording_visibility', as: :admin_recording_visibility
|
||||
get '/roles', to: 'admins#roles', as: :admin_roles
|
||||
post '/role', to: 'admins#new_role', as: :admin_new_role
|
||||
patch 'roles/order', to: 'admins#change_role_order', as: :admin_roles_order
|
||||
post '/role/:role_id', to: 'admins#update_role', as: :admin_update_role
|
||||
delete 'role/:role_id', to: 'admins#delete_role', as: :admin_delete_role
|
||||
end
|
||||
|
||||
scope '/themes' do
|
||||
@ -96,6 +99,9 @@ Rails.application.routes.draw do
|
||||
# Room resources.
|
||||
resources :rooms, only: [:create, :show, :destroy], param: :room_uid, path: '/'
|
||||
|
||||
# Join a room by UID
|
||||
post '/room/join', to: 'rooms#join_specific_room', as: :join_room
|
||||
|
||||
# Extended room routes.
|
||||
scope '/:room_uid' do
|
||||
post '/', to: 'rooms#join'
|
||||
|
Reference in New Issue
Block a user