mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 20:11:14 +08:00
fix: restart permission check (#3011)
This commit is contained in:
parent
dec423eeb3
commit
1af31847fa
@ -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