Add read_usage_quotas ability to GroupPolicy
The following discussion from !82396 (merged) should be addressed:
-
@toupeira started a discussion: (+2 comments) thought (non-blocking): I saw we have a similar situation with
:admin_groupin https://gitlab.com/gitlab-org/gitlab/blob/e7983f2e29073250550fc6df3fdb2e7973863d66/ee/app/controllers/groups/usage_quotas_controller.rb#L4, it probably makes sense to add a:read_usage_quotasonGroupPolicyas well.This could definitely be its own follow-up MR though
😀
Proposal
- add a new ability,
read_usage_quotas, to theGroupPolicy - modify the
Groups::UsageQuotasControllerbefore action to use the new ability - add test coverage
Availability & Testing
Unit test coverage should be sufficient
Edited by Edgars Bralitis