fixed login handling in the workorder app

This commit is contained in:
2025-09-09 14:01:53 +02:00
parent fe53e4b4ae
commit 94feab5c0c
2 changed files with 6 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ class TTCrud extends mfBaseController {
if (method_exists($this, 'permissionsCheckOverride'))
$this->permissionsCheckOverride();
else if (!$permissionAllowed && !$this->user->is(["Admin"]))
else if (mfLoginController::isLoggedIn() && !$permissionAllowed && !$this->user->is(["Admin"]))
$this->redirect("Dashboard");
$c = get_class($this);