Skip to content

Check authorization to view billableMembersCount via GraphQL

Vijay Hawoldar requested to merge vij-auth-check-billable-count into master

What does this MR do and why?

In #322815 (comment 864427923) it was raised that only certain user roles should have access to billableMembersCount which is being exposed via GraphQL

This MR adds the authorization check and updates the specs accordingly

How to set up and validate locally

  1. Navigate to http://localhost:3000/-/graphql-explorer
  2. Query a group with the following:
    query {
      group(fullPath: "path/to/group/here"){
        billableMembersCount
      }
    }
  3. Try the same query when logged in as the owner/developer/guest/etc

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports