mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 05:35:08 +08:00
fix: restart permission check
This commit is contained in:
parent
1110af98ef
commit
0687a8fc5d
@ -314,7 +314,7 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
|
|||||||
configGroup.POST("/reset_config", cm.ResetConfig)
|
configGroup.POST("/reset_config", cm.ResetConfig)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
r.POST("/restart", cm.Restart)
|
r.POST("/restart", cm.CheckAdmin, cm.Restart)
|
||||||
}
|
}
|
||||||
return r, nil
|
return r, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user