This commit is contained in:
2025-12-08 03:07:37 +01:00
parent 0e8f4531c1
commit e3d8932cd5

View File

@@ -11,7 +11,7 @@ async function ensureAuthenticated() {
try { try {
const me = await apiAction('auth.me', { method: 'GET' }); const me = await apiAction('auth.me', { method: 'GET' });
if (!me?.ok || !me?.user) { if (!me?.ok || !me?.user) {
// window.location.href = '/login.php'; window.location.href = '/login.php';
return false; return false;
} }
window.__currentUser = me.user; window.__currentUser = me.user;