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

GetGroupUsers adding query param admin_only #3273

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dscervantes
Copy link

rbac added a new query parameter for getgroupusers called admin_only. Now we don't have to use our own filtering for adminonly.

@@ -312,6 +312,7 @@ public List<User> getGroupUsers(String orgId, boolean adminOnly, UUID groupId) {
} else {
users = getWithPagination(page -> {
Timer.Sample getGroupUsersPageTimer = Timer.start(meterRegistry);
// or do i have to add it here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you need to pass the adminOnly argument from line 289 to the rbacServiceToService.getGroupUsers method. Then lines 324 to 328 will no longer be needed.

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.

2 participants