Skip to content

Commit

Permalink
fix(acs): force subject id
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Dec 21, 2023
1 parent 3085c01 commit c9aa0a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/acs-client/src/acs/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export function access_controlled_function<T extends ResourceList>(kwargs: {
: kwargs.database;

const subject = context?.subject;
subject.id = null;
if (subject?.token) {
const user = await this.__userService.findByToken({ token: subject.token });
if (user?.payload?.id) {
Expand Down

0 comments on commit c9aa0a7

Please sign in to comment.