Skip to content

feat(privacy): restrict team member lists by role - #3110

Open
Koc wants to merge 2 commits into
masterfrom
feat/member-list-visibility
Open

Koc wants to merge 2 commits into
masterfrom
feat/member-list-visibility

Conversation

@Koc

@Koc Koc commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR allows to hide members list from the user based on a role. It can be useful for some cases when we want to avoid expose members list.

Settings view
image

User with restricted role view
image

TODO

  • Fix tests
  • Reflect this changes in Collectives app once this PR has been merged

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.36585% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...teams/components/TeamMembersVisibilitySettings.vue 84.21% 3 Missing ⚠️
...ams/team-page/components/MemberList/MemberList.vue 0.00% 1 Missing and 1 partial ⚠️
src/teams/components/TeamHeader.vue 50.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
Comment thread lib/FederatedItems/CircleSetting.php Resolved
Comment thread lib/Model/Circle.php Resolved
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>

@artonge artonge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did we had requests for this?

Also, I feel like the member list will eventually leak. This is probably the case already in Talk or Calendar when you add team.

private function getCapabilitiesCircle(): array {
return [
'constants' => $this->getCapabilitiesCircleConstants(),
'membersListVisibility' => true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think that needed

Comment on lines +12 to +14
const CircleConfigCheckboxesList = defineAsyncComponent(() => import('../components/CircleDetails/CircleConfigs/CircleConfigCheckboxesList.vue'))
const CircleConfigInvitationLink = defineAsyncComponent(() => import('../components/CircleDetails/CircleConfigs/CircleConfigInvitationLink.vue'))
const CircleConfigPrivacy = defineAsyncComponent(() => import('../components/CircleDetails/CircleConfigs/CircleConfigPrivacy.vue'))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we have performance issues to require to move those to async components?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants