boundary
boundary copied to clipboard
Resolve GrantsForUser queries via resolveQuery()
trafficstars
For each grantsForUser repo function, the logic to map from DB object -> perms.GrantTuple was very similar.
- This PR reduces code by removing those functions & moves the mapping logic into
GrantsForUser - Created a new function,
resolveQuery(), to determine which query to use based on the request scope & the resources' applicable scopes