Skip to content

Conversation

@leftybournes
Copy link
Contributor

@leftybournes leftybournes commented Aug 28, 2025

Summary

Allow a user to view the list of members of their group.

Needed by nextcloud/contacts#4658

Checklist

@leftybournes leftybournes marked this pull request as ready for review August 28, 2025 07:48
@leftybournes leftybournes requested a review from a team as a code owner August 28, 2025 07:48
@leftybournes leftybournes requested review from CarlSchwan, come-nc and yemkareems and removed request for a team August 28, 2025 07:48
@leftybournes leftybournes force-pushed the leftybournes/feat/teams_groups_readonly branch from 4762b76 to 2908f81 Compare August 28, 2025 07:56
@leftybournes leftybournes added the 3. to review Waiting for reviews label Aug 28, 2025
@leftybournes leftybournes added this to the Nextcloud 32 milestone Aug 28, 2025
@codecov
Copy link

codecov bot commented Aug 28, 2025

⚠️ Unsupported file format

Upload processing failed due to unsupported file format. Please review the parser error message:
Error deserializing json

Caused by:
expected value at line 1 column 1

For more help, visit our troubleshooting guide.

@provokateurin provokateurin merged commit 706c78f into master Aug 28, 2025
214 of 227 checks passed
@provokateurin provokateurin deleted the leftybournes/feat/teams_groups_readonly branch August 28, 2025 09:24
$group = $this->groupManager->get($groupId);
if ($group !== null) {
$isSubadminOfGroup = $this->groupManager->getSubAdmin()->isSubAdminOfGroup($user, $group);
$isMember = $this->groupManager->isInGroup($user->getUID(), $group->getGID());
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally this kind of checks should be done only when $isAdmin is false, to avoid useless queries.

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

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants