Disconnect deletes the users the portal let in

A local Disconnect deletes every portal-mapped user except the account the
instance was enrolled as and superusers, so no inert rows stay behind. The
confirm dialog says so, and Admin → Users refreshes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 11:02:07 +02:00
co-authored by Claude Opus 5.5
parent 391edc8766
commit 579c0c22b2
5 changed files with 57 additions and 6 deletions
+2 -1
View File
@@ -469,7 +469,8 @@ export class CloudService {
*
* Unilateral and immediate: the config is the only reason portal tokens
* verify here, so deleting it ends remote access whatever the portal still
* has on file.
* has on file. The users the portal let in go with it. The account it was
* enrolled as stays, and so does every superuser.
* @returns Message Successful Response
* @throws ApiError
*/
@@ -104,6 +104,7 @@ export function RemoteAccess() {
setConfirmDisconnect(false)
showSuccessToast("Disconnected from the portal")
invalidate()
queryClient.invalidateQueries({ queryKey: ["users"] })
},
onError: handleError.bind(showErrorToast),
})
@@ -290,8 +291,9 @@ export function RemoteAccess() {
<DialogTitle>Disconnect from the portal?</DialogTitle>
<DialogDescription>
Remote access ends immediately and the portal's credentials stop
working here. Nothing on this instance is changed or deleted, and
you can connect again with a new code.
working here. The users the portal let in are deleted. The account
it was connected as and every superuser stay, flows and data are
untouched, and you can connect again with a new code.
</DialogDescription>
</DialogHeader>
<DialogFooter>