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