Skip to content

Commit

Permalink
fix: run list queries without auth
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Nov 8, 2023
1 parent f98288a commit 1143238
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/api-aco/src/createAcoContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,16 @@ const setupAcoContext = async (context: AcoContext): Promise<void> => {
});
}

const listAdminUsers = () => context.adminUsers.listUsers();
const listTeams = () => context.security.listTeams();
const listAdminUsers = () => {
return security.withoutAuthorization(async () => {
return context.adminUsers.listUsers();
});
};
const listTeams = () => {
return security.withoutAuthorization(async () => {
return context.security.listTeams();
});
};

context.aco = {
folder: createFolderCrudMethods({
Expand Down

0 comments on commit 1143238

Please sign in to comment.