feat(rest-api): add route to see user privileges#9728
Open
MathieuRA wants to merge 2 commits intomra-acl-v2from
Open
feat(rest-api): add route to see user privileges#9728MathieuRA wants to merge 2 commits intomra-acl-v2from
MathieuRA wants to merge 2 commits intomra-acl-v2from
Conversation
spacotte-vates
requested changes
Apr 21, 2026
| @Query() ndjson?: boolean, | ||
| @Query() filter?: string, | ||
| @Query() limit?: number | ||
| ) { |
Collaborator
There was a problem hiding this comment.
Suggested change
| ) { | |
| ): SendObjects<AnyPrivilege> { |
Comment on lines
+394
to
+395
| * Returns all ACL privileges that match the following privilege: | ||
| * - resource: acl-privilege, action: read |
Collaborator
There was a problem hiding this comment.
When using "me" or own user id as the id, we explicitly don't filter the privileges, I think it should be documented.
Suggested change
| * Returns all ACL privileges that match the following privilege: | |
| * - resource: acl-privilege, action: read | |
| * Returns all ACL privileges that match the following privilege: | |
| * - resource: acl-privilege, action: read | |
| * If user is checking himself, returns all priviledges |
Member
Author
There was a problem hiding this comment.
Yes, you're right. I missed it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Short explanation of this PR (feel free to re-use commit message)
Checklist
Fixes #007,See xoa-support#42,See https://...)Introduced byCHANGELOG.unreleased.mdReview process
If you are an external contributor, you can skip this part. Simply create the pull request, and we'll get back to you as soon as possible.
Notes: