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

api: check if user id is a group id #1502

Merged
merged 1 commit into from
Oct 30, 2023
Merged

api: check if user id is a group id #1502

merged 1 commit into from
Oct 30, 2023

Conversation

SamuelPull
Copy link
Collaborator

@SamuelPull SamuelPull commented Oct 27, 2023

Checklist

  • I have followed (at least) the PR section of the contributing guide.
  • I fixed all necessary PR warnings
  • The commit history is clean
  • The E2E tests are passing
  • If possible, the issue has been divided into more subtasks
  • I did a self review before requesting a review from another team member

Description

Permissions for the user were inherited from a group. api tried to query users with this groupId. Fix introduces checking if the id is user id or group id. If it is a group id, it fetches group members.

TB already makes sure that the same id cannot be used for two different users, or a user and a group.

Closes #1498

@openkfwCI
Copy link

openkfwCI commented Oct 27, 2023

NotesTime
Note for Reviewer: E2E tests on remote server succeededFri, 27 Oct 2023 14:36:23 +0000

Generated by E2E-Test

@SamuelPull SamuelPull merged commit 9838e83 into main Oct 30, 2023
29 checks passed
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.

Error message whe uploading a document
3 participants