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

Fixes requests from anonymous user #873

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

ostcar
Copy link
Member

@ostcar ostcar commented Mar 3, 2024

When the restrictor depends on db-values of the request user, then it has to pay attanchen, that the request is not send for the anonsmous user (userID==0) since the anonyomus user is not in the database.

There were two cases, where a check was missing. This PR adds these checks.

Fixes #789

When the restrictor depends on db-values of the request user, then it has to pay attanchen, that the request is not send
for the anonsmous user (userID==0) since the anonyomus user is not in the database.

There were two cases, where a check was missing. This PR adds these checks.

Fixes OpenSlides#789
@ostcar ostcar added the bug label Mar 3, 2024
@ostcar ostcar added this to the 4.2 milestone Mar 3, 2024
@ostcar ostcar requested a review from bastianjoel March 3, 2024 07:03
@ostcar ostcar merged commit d09cc80 into OpenSlides:main Mar 4, 2024
4 checks passed
@ostcar ostcar deleted the issue-789 branch March 4, 2024 08:06
peb-adr added a commit to peb-adr/openslides-autoupdate-service that referenced this pull request Mar 20, 2024
* commit '8804946fdca03dc3c30dd92f0a4667833113059c': (24 commits)
  Update meta repository (OpenSlides#891)
  Update meta repository (OpenSlides#889)
  Bump github.com/jackc/pgx/v5 from 5.5.4 to 5.5.5 (OpenSlides#886)
  Update meta repository (OpenSlides#887)
  Bump github.com/alecthomas/kong from 0.8.1 to 0.9.0 (OpenSlides#884)
  Update meta repository (OpenSlides#881)
  Bump golang from 1.22.0-alpine to 1.22.1-alpine (OpenSlides#883)
  Automatically close feature branch issues (OpenSlides#882)
  Bump golang.org/x/sys from 0.17.0 to 0.18.0 (OpenSlides#879)
  Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4 (OpenSlides#880)
  Update meta repository (OpenSlides#878)
  Add free text submitter field (OpenSlides#864)
  Update meta repository (OpenSlides#875)
  Add Maybe-Type for non required fields (OpenSlides#872)
  Fixes requests from anonymous user (OpenSlides#873)
  Yaml (OpenSlides#849)
  Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (OpenSlides#871)
  Update meta repository (OpenSlides#869)
  Update meta repository (OpenSlides#868)
  Automatically create PRs for commits on staging branches (OpenSlides#865) (OpenSlides#867)
  ...
bastianjoel pushed a commit that referenced this pull request Apr 17, 2024
When the restrictor depends on db-values of the request user, then it has to pay attanchen, that the request is not send
for the anonsmous user (userID==0) since the anonyomus user is not in the database.

There were two cases, where a check was missing. This PR adds these checks.

Fixes #789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

key/fqfield error when requesting restricted field
2 participants