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")
|
||||
|
||||
a.ctx = newCtx
|
||||
a.app.Srv().Store.SetContext(newCtx)
|
||||
a.app.Srv().Store().SetContext(newCtx)
|
||||
defer func() {
|
||||
a.app.Srv().Store.SetContext(origCtx)
|
||||
a.app.Srv().Store().SetContext(origCtx)
|
||||
a.ctx = origCtx
|
||||
}()
|
||||
|
||||
|
||||
@@ -2677,7 +2677,7 @@ func (a *App) UserIsFirstAdmin(user *model.User) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
systemAdminUsers, errServer := a.Srv().Store.User().GetSystemAdminProfiles()
|
||||
systemAdminUsers, errServer := a.Srv().Store().User().GetSystemAdminProfiles()
|
||||
if errServer != nil {
|
||||
mlog.Warn("Failed to get system admins to check for first admin from Mattermost.")
|
||||
return false
|
||||
|
||||
Ссылка в новой задаче
Block a user