Prechádzať zdrojové kódy

ignore non-rac clients in auto disable hook

abhishek9686 10 mesiacov pred
rodič
commit
f24f3d84ab
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      pro/remote_access_client.go

+ 3 - 0
pro/remote_access_client.go

@@ -47,6 +47,9 @@ func racAutoDisableHook() error {
 			continue
 		}
 		for _, client := range clients {
+			if client.RemoteAccessClientID == "" {
+				continue
+			}
 			if (client.OwnerID == user.UserName) &&
 				user.PlatformRoleID != models.SuperAdminRole &&
 				user.PlatformRoleID != models.AdminRole &&