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

New BeforeGroupChangedEvent before setDisplayName on groups #36792

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

julien-nc
Copy link
Member

This could be useful to let apps prevent renaming of some groups.
This was mentioned by the developers of the OpenProject integration.

@miaulalala Why isn't the old value passed to the GroupChangedEvent?
https://github.com/nextcloud/server/blob/master/lib/private/Group/Group.php#L116

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc added this to the Nextcloud 26 milestone Feb 21, 2023
@julien-nc julien-nc requested review from miaulalala, a team, ArtificialOwl, icewind1991 and blizzz and removed request for a team February 21, 2023 09:43
Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

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

To answer your question: I'm not sure, must have been an oversight.

PR looks good!

@julien-nc
Copy link
Member Author

Thanks for the reviews!

Psalm failure is unrelated.

@julien-nc julien-nc merged commit a789288 into master Feb 21, 2023
@julien-nc julien-nc deleted the enh/noid/add-before-group-changed-event branch February 21, 2023 16:22
juliusknorr added a commit that referenced this pull request Feb 21, 2023
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
Copy link
Member

Drone failure was related. Pushed updated autoloaders in #36799

max-nextcloud added a commit that referenced this pull request Feb 21, 2023
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
RonaldBarnes pushed a commit to RonaldBarnes/NextCloud-server that referenced this pull request Mar 1, 2023
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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.

4 participants