Skip to content

Conversation

joshtrichards
Copy link
Member

Checklist

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
@joshtrichards
Copy link
Member Author

/backport to stable29

@joshtrichards joshtrichards marked this pull request as ready for review July 18, 2024 17:32
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv modified the milestones: Nextcloud 30, Nextcloud 31 Aug 14, 2024
@joshtrichards joshtrichards changed the title fix: Don't permit duplicate groups in occ admin-delegation:add fix: Don't permit duplicate groups in occ admin-delegation:add Sep 7, 2024
@joshtrichards joshtrichards changed the title fix: Don't permit duplicate groups in occ admin-delegation:add fix(settings): Don't permit duplicate groups in occ admin-delegation:add Sep 7, 2024
@blizzz blizzz mentioned this pull request Jan 8, 2025
This was referenced Jan 14, 2025
This was referenced Jan 21, 2025
@blizzz blizzz mentioned this pull request Jan 29, 2025
1 task
@blizzz blizzz modified the milestones: Nextcloud 31, Nextcloud 32 Jan 29, 2025
This was referenced Aug 22, 2025
This was referenced Sep 2, 2025
This was referenced Sep 25, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
$groups = $this->authorizedGroupService->findExistingGroupsForClass($settingClass);
foreach ($groups as $group) {
if ($group->getGroupId() === $groupId) {
$io->error('The specified group has already been delegated to.');
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not clear, it should say it has already been delegated the same setting or something, no?

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.

[Bug]: occ admin-delegation:add allows adding the same delegation multiple times

4 participants