Add UserHasBeenDeactivated plugin hook (#20894)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
Matthew Dorner
2023-08-30 01:55:20 -05:00
коммит произвёл GitHub
родитель 8c8b8b7e79
Коммит 5de1e306de
7 изменённых файлов: 144 добавлений и 14 удалений

Просмотреть файл

@@ -51,6 +51,7 @@ const (
deprecatedGetTopicMetadataByIdsID = 33
ConfigurationWillBeSavedID = 34
NotificationWillBePushedID = 35
UserHasBeenDeactivatedID = 36
TotalHooksID = iota
)
@@ -298,4 +299,9 @@ type Hooks interface {
//
// Minimum server version: 9.0
NotificationWillBePushed(pushNotification *model.PushNotification, userID string) (*model.PushNotification, string)
// UserHasBeenDeactivated is invoked when a user is deactivated.
//
// Minimum server version: 9.1
UserHasBeenDeactivated(c *Context, user *model.User)
}