-
- Downloads
An error occurred while retrieving diff files
Extract #can_any? to check multiple permissions
This change introduces a helper method called `#can_any?` to allow checking for multiple abilities at once. This is helpful for the development of Custom Roles as we are now starting to check for one or more permissions in order to access specific UI elements and endpoints.
parent
e4ad9aff
No related branches found
No related tags found
Showing
- ee/lib/ee/sidebars/groups/menus/settings_menu.rb 1 addition, 5 deletionsee/lib/ee/sidebars/groups/menus/settings_menu.rb
- ee/lib/ee/sidebars/projects/menus/settings_menu.rb 3 additions, 13 deletionsee/lib/ee/sidebars/projects/menus/settings_menu.rb
- lib/gitlab/allowable.rb 6 additions, 0 deletionslib/gitlab/allowable.rb
- lib/gitlab/view/presenter/delegated.rb 1 addition, 0 deletionslib/gitlab/view/presenter/delegated.rb
- spec/lib/gitlab/allowable_spec.rb 17 additions, 0 deletionsspec/lib/gitlab/allowable_spec.rb
Loading
Please register or sign in to comment