Explorar o código

check ownerid

Abhishek Kondur %!s(int64=2) %!d(string=hai) anos
pai
achega
41d6ca9d5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 		}
 	}