-
- Downloads
Add restriction on users trying to change their own role (#5318)
* Add restriction on users trying to change their own role * Add check for role_id in params * rubo
Showing
- app/controllers/api/v1/users_controller.rb 4 additions, 3 deletionsapp/controllers/api/v1/users_controller.rb
- app/javascript/components/users/user/forms/UpdateUserForm.jsx 2 additions, 3 deletions...javascript/components/users/user/forms/UpdateUserForm.jsx
- config/application.rb 2 additions, 1 deletionconfig/application.rb
- spec/controllers/users_controller_spec.rb 19 additions, 2 deletionsspec/controllers/users_controller_spec.rb
Loading
Please register or sign in to comment