diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-07 17:46:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 17:46:00 +0200 |
commit | 54726d5934c47cd643900bb17e4ccc4f56e946bd (patch) | |
tree | f843b700d978034b743f543b5348679b5d85d73a /lib/public | |
parent | 408ed7ebd4c8da989fdbd45024cdec2e52a1f35c (diff) | |
parent | 96d418b37950369924b4566d8702e3237b7b187e (diff) | |
download | nextcloud-server-54726d5934c47cd643900bb17e4ccc4f56e946bd.tar.gz nextcloud-server-54726d5934c47cd643900bb17e4ccc4f56e946bd.zip |
Merge pull request #21738 from nextcloud/techdebt/14552/migrate-OC_Group-post_removeFromGroup
Migrate OC_Group post_removeFromGroup hook to actual event object
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Group/Events/BeforeUserRemovedEvent.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Group/Events/BeforeUserRemovedEvent.php b/lib/public/Group/Events/BeforeUserRemovedEvent.php index cc657f952e6..fb0f7f45191 100644 --- a/lib/public/Group/Events/BeforeUserRemovedEvent.php +++ b/lib/public/Group/Events/BeforeUserRemovedEvent.php @@ -32,6 +32,10 @@ use OCP\IUser; /** * @since 18.0.0 + * @deprecated 20.0.0 - it can't be guaranteed that this event is triggered in + * all case (e.g. for LDAP users this isn't possible) - if there is a valid use + * case please reach out in the issue tracker at + * https://github.com/nextcloud/server/issues */ class BeforeUserRemovedEvent extends Event { @@ -43,6 +47,7 @@ class BeforeUserRemovedEvent extends Event { /** * @since 18.0.0 + * @deprecated 20.0.0 */ public function __construct(IGroup $group, IUser $user) { parent::__construct(); @@ -53,6 +58,7 @@ class BeforeUserRemovedEvent extends Event { /** * @return IGroup * @since 18.0.0 + * @deprecated 20.0.0 */ public function getGroup(): IGroup { return $this->group; @@ -61,6 +67,7 @@ class BeforeUserRemovedEvent extends Event { /** * @return IUser * @since 18.0.0 + * @deprecated 20.0.0 */ public function getUser(): IUser { return $this->user; |