2
0
Эх сурвалжийг харах

ignore non-rac clients in auto disable hook

abhishek9686 10 сар өмнө
parent
commit
f24f3d84ab

+ 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 &&