Abhishek Kondur před 2 roky
rodič
revize
41d6ca9d5c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      logic/gateway.go

+ 1 - 1
logic/gateway.go

@@ -240,7 +240,7 @@ func IsUserAllowedAccessToExtClient(username string, client models.ExtClient) bo
 		return false
 	}
 	if !user.IsAdmin && !user.IsSuperAdmin {
-		if user.UserName != client.ClientID {
+		if user.UserName != client.OwnerID {
 			return false
 		}
 	}