Skip to content

Extract #can_any? helper to check for multiple permissions

mo khan requested to merge mokhax/can-any into master

What does this MR do and why?

This change was extracted from !151825 (merged) to introduce 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.

#442851 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by mo khan

Merge request reports

Loading