فهرست منبع

ignore non-rac clients in auto disable hook

abhishek9686 10 ماه پیش
والد
کامیت
f24f3d84ab
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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 &&