asdsad
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user