This reverts commit acbbd4c58d.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
690cbc9fa3
Коммит
ac10bb12a5
@@ -463,9 +463,9 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
return s, nil
|
||||
}
|
||||
|
||||
s.platform.AddConfigListener(func(oldCfg, newCfg *model.Config) {
|
||||
s.platform.AddConfigListener(func(old, new *model.Config) {
|
||||
appInstance := New(ServerConnector(s.Channels()))
|
||||
if *oldCfg.GuestAccountsSettings.Enable && !*newCfg.GuestAccountsSettings.Enable {
|
||||
if *old.GuestAccountsSettings.Enable && !*new.GuestAccountsSettings.Enable {
|
||||
c := request.EmptyContext(s.Log())
|
||||
if appErr := appInstance.DeactivateGuests(c); appErr != nil {
|
||||
mlog.Error("Unable to deactivate guest accounts", mlog.Err(appErr))
|
||||
|
||||
Ссылка в новой задаче
Block a user