Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission middelware #806

Merged
merged 2 commits into from
Jun 9, 2024
Merged

Permission middelware #806

merged 2 commits into from
Jun 9, 2024

Conversation

MadsNyl
Copy link
Contributor

@MadsNyl MadsNyl commented Jun 9, 2024

Proposed changes

Per now, a request can check the token in the DB 2-5 times for one single request. Added a check that prevent duplicate DB calls.

Issue number: closes # (remove if not an issue)

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • API docs on Codex have been reviewed and added / updated if needed (for bug fixes / features)
  • The fixtures have been updated if needed (for migrations)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@MadsNyl MadsNyl merged commit 64d717c into dev Jun 9, 2024
7 checks passed
@MadsNyl MadsNyl deleted the refactor(middleware)/set_user_id branch June 9, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant