Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jan 24, 2025
1 parent 893ae3b commit f24bd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
...getRestPayload(this.request.body),
});

if (options.authRequired) {
if (options.authRequired || options.authOrAnonRequired) {
const user = await api.authenticatedRoute(this.request);
this.user = user;
this.userId = this.user?._id;
Expand Down

0 comments on commit f24bd12

Please sign in to comment.