update
This commit is contained in:
@@ -26,7 +26,7 @@ function ensureAccess() {
|
||||
const role = (window.__currentUser?.role || '').toLowerCase();
|
||||
if (role !== 'owner' && role !== 'admin') {
|
||||
toast('Kein Zugriff auf das Dashboard', false);
|
||||
window.location.href = '/account.php';
|
||||
window.location.href = '/admin/profile.php';
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -123,7 +123,7 @@ function enforcePageAccess() {
|
||||
if (pageType !== 'admin') return;
|
||||
if (isAdmin()) return;
|
||||
toast('Kein Zugriff auf diesen Bereich', false, { duration: 2500 });
|
||||
window.location.href = '/account.php';
|
||||
window.location.href = '/admin/profile.php';
|
||||
}
|
||||
|
||||
function handleUserContextChange() {
|
||||
|
||||
Reference in New Issue
Block a user