-
Notifications
You must be signed in to change notification settings - Fork 881
fix: allow group members to read group information #14200
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
Merged
Emyrk
merged 24 commits into
coder:main
from
hugodutka:hugodutka/13988-group-member-read-permissions
Aug 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2c6d037
- allow group members to read basic Group info
hugodutka 2409072
rename ReducedGroup.member_count to ReducedGroup.total_member_count
hugodutka 5391c15
use the reduced groups for user endpoint on the AccountPage
hugodutka 5fcc218
rename UserWithGroupAndOrgID to GroupMemberRBACHelper
hugodutka 2878c21
add the group_members_expanded db view
hugodutka 3aa2a23
add comment on migration
hugodutka e428d40
rewrite group member queries to use the group_members_expanded view
hugodutka 13ca3a9
add the RBAC ResourceGroupMember and add it to relevant roles
hugodutka 1027d9f
rewrite GetGroupMembersByGroupID permission checks
hugodutka 0aea7f8
- make the GroupMember type contain all user fields
hugodutka e5c5f3f
simplify RBAC check on group member count
hugodutka 16e95d0
add the MemberTotalCount field to codersdk.Group
hugodutka d3b4d7c
remove the reduced groups endpoint, revert frontend to use the groups…
hugodutka b06f943
revert "simplify RBAC check on group member count" - new query didn't…
hugodutka 4a65874
display `group.total_member_count` instead of `group.members.length` …
hugodutka 1f4dcc7
adjust `total_member_count` on `MockGroup`
hugodutka f1513e0
fixes after rebase
hugodutka 9ef0e0d
simplify RBAC check on GetGroupMembersCountByGroupID
hugodutka 7627933
fix tests
hugodutka 1080b29
resolve lint error
hugodutka 19486da
update the groupsauth test to work with new group member permissions
hugodutka 5373dd7
fix a mistake in test
hugodutka 08646da
make ErrUserDeleted private
hugodutka 4ec6adb
`dbgen.GroupMember` now fails when a supplied user or group doesn't e…
hugodutka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
rewrite GetGroupMembersByGroupID permission checks
- Loading branch information
commit 1027d9f58f6bfb3290e2529a2b7cbf2ffcae5caf
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍