Add UserHasBeenDeactivated plugin hook (#20894)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8c8b8b7e79
Коммит
5de1e306de
@@ -225,3 +225,9 @@ func (hooks *hooksTimerLayer) NotificationWillBePushed(pushNotification *model.P
|
||||
hooks.recordTime(startTime, "NotificationWillBePushed", true)
|
||||
return _returnsA, _returnsB
|
||||
}
|
||||
|
||||
func (hooks *hooksTimerLayer) UserHasBeenDeactivated(c *Context, user *model.User) {
|
||||
startTime := timePkg.Now()
|
||||
hooks.hooksImpl.UserHasBeenDeactivated(c, user)
|
||||
hooks.recordTime(startTime, "UserHasBeenDeactivated", true)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user