Browse Source

check ownerid

Abhishek Kondur 2 years ago
parent
commit
41d6ca9d5c
1 changed files with 1 additions and 1 deletions
  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
 		}
 	}