This commit is contained in:
2025-12-08 03:08:36 +01:00
parent e3d8932cd5
commit 7235c89e56
3 changed files with 3 additions and 3 deletions

View File

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