From 26b8b530c9949f3b4bac32f4b1cfc0b8eb3a1182 Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Sun, 19 Jul 2026 16:15:54 +0200 Subject: [PATCH] security(users): prevent ext. user to become admin --- frontend/src/routes/admin/+page.svelte | 30 ++++++++++++------- .../services/auth_application_service.rs | 27 ++++++++++++++++- 2 files changed, 45 insertions(+), 12 deletions(-) diff --git a/frontend/src/routes/admin/+page.svelte b/frontend/src/routes/admin/+page.svelte index f2436c34..1d4a4562 100644 --- a/frontend/src/routes/admin/+page.svelte +++ b/frontend/src/routes/admin/+page.svelte @@ -2382,17 +2382,25 @@ {:else} {/if} - - + + {#if !u.is_external} + + {:else} + + {/if}