소스 검색

check ownerid

Abhishek Kondur 2 년 전
부모
커밋
41d6ca9d5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 		}
 	}