MM-46528_Verify Invitation Flow Tracking Telemetry - Fix build (#21488)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
757c4e041a
Коммит
53b396d325
@@ -18057,9 +18057,9 @@ func (a *OpenTracingAppLayer) UserIsFirstAdmin(user *model.User) bool {
|
|||||||
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.UserIsFirstAdmin")
|
span, newCtx := tracing.StartSpanWithParentByContext(a.ctx, "app.UserIsFirstAdmin")
|
||||||
|
|
||||||
a.ctx = newCtx
|
a.ctx = newCtx
|
||||||
a.app.Srv().Store.SetContext(newCtx)
|
a.app.Srv().Store().SetContext(newCtx)
|
||||||
defer func() {
|
defer func() {
|
||||||
a.app.Srv().Store.SetContext(origCtx)
|
a.app.Srv().Store().SetContext(origCtx)
|
||||||
a.ctx = origCtx
|
a.ctx = origCtx
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
@@ -2677,7 +2677,7 @@ func (a *App) UserIsFirstAdmin(user *model.User) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
systemAdminUsers, errServer := a.Srv().Store.User().GetSystemAdminProfiles()
|
systemAdminUsers, errServer := a.Srv().Store().User().GetSystemAdminProfiles()
|
||||||
if errServer != nil {
|
if errServer != nil {
|
||||||
mlog.Warn("Failed to get system admins to check for first admin from Mattermost.")
|
mlog.Warn("Failed to get system admins to check for first admin from Mattermost.")
|
||||||
return false
|
return false
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user