Restrict who can call org-specific APIs #131
Labels
p1
Urgent tasks
story:org-permissions
Orgs can restrict who can access their data
type:bug
Something isn't working in a story
Is your feature request related to a problem? Please describe.
As mentioned in #115, while I did add a UI blocker to prevent users from seeing an org's search results, smart techy people (like me) can still access that data directly via the unrestricted
/api/users
endpoint.Describe the solution you'd like
Call the
verifyAuth
component in thelib/api/routes/users/list.ts
API route definition to ensure that the user is authorized to be requesting the given filters (i.e. if they're a member of the org they're filtering by).The text was updated successfully, but these errors were encountered: