-
- Downloads
Raise a new Gitlab::Access::AccessDeniedError when permission is not enough to destroy a member
This is a try for a new approach to put the access checks at the service level.
Signed-off-by:
Rémy Coutable <remy@rymai.me>
Showing
- app/controllers/application_controller.rb 4 additions, 0 deletionsapp/controllers/application_controller.rb
- app/controllers/concerns/membership_actions.rb 8 additions, 26 deletionsapp/controllers/concerns/membership_actions.rb
- app/controllers/groups/group_members_controller.rb 0 additions, 6 deletionsapp/controllers/groups/group_members_controller.rb
- app/controllers/projects/project_members_controller.rb 0 additions, 6 deletionsapp/controllers/projects/project_members_controller.rb
- app/services/members/destroy_service.rb 6 additions, 20 deletionsapp/services/members/destroy_service.rb
- lib/gitlab/access.rb 2 additions, 0 deletionslib/gitlab/access.rb
- spec/services/members/destroy_service_spec.rb 22 additions, 2 deletionsspec/services/members/destroy_service_spec.rb
Please register or sign in to comment