← Blog · 23 October 2026
Hiding the admin button is not the same as locking the door
Ask Lovable, Bolt or Cursor for an admin page, and the quickest code may check "is this the admin?" only in the browser. It hides the admin buttons from everyone else. But anyone can change what runs in their own browser, so a hidden button is not a lock.
A quick check:
- Open your live app, press F12 and search the Sources tab for "admin" or your own email address.
- If you find an admin email or an "isAdmin" flag in that code, the check probably happens in the browser.
- Make the server decide: a Supabase RLS policy, an edge function or a server route that checks the user's role before returning or changing data.
- Test logged in as a normal user. Admin data should not come back.
Want an outside look at your live app? Run a free scan at Vibe-App Watchdog.