boundary icon indicating copy to clipboard operation
boundary copied to clipboard

Resolve GrantsForUser queries via resolveQuery()

Open dkanney opened this issue 5 months ago • 0 comments
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

dkanney avatar Jun 11 '25 00:06 dkanney