mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
nps some config hot reload
This commit is contained in:
@@ -145,7 +145,7 @@ func (s *BaseController) CheckUserAuth() {
|
||||
if s.controllerName == "index" {
|
||||
if id := s.GetIntNoErr("id"); id != 0 {
|
||||
belong := false
|
||||
if strings.Contains(s.actionName, "H") {
|
||||
if strings.Contains(s.actionName, "h") {
|
||||
if v, ok := file.GetCsvDb().Hosts.Load(id); ok {
|
||||
if v.(*file.Host).Client.Id == s.GetSession("clientId").(int) {
|
||||
belong = true
|
||||
|
Reference in New Issue
Block a user