Improve response on team restore (#32118)
Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0832bf8fd4
Коммит
d8758f8984
@@ -347,6 +347,8 @@ func restoreTeam(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
c.App.SanitizeTeam(*c.AppContext.Session(), team)
|
||||
|
||||
auditRec.AddEventResultState(team)
|
||||
auditRec.AddEventObjectType("team")
|
||||
auditRec.Success()
|
||||
@@ -407,6 +409,8 @@ func updateTeamPrivacy(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
c.App.SanitizeTeam(*c.AppContext.Session(), team)
|
||||
|
||||
auditRec.AddEventResultState(team)
|
||||
auditRec.AddEventObjectType("team")
|
||||
auditRec.Success()
|
||||
|
||||
Ссылка в новой задаче
Block a user