浏览代码

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