Skip to content

Commit 78e69d3

Browse files
committed
refactor(core): update code base for new ACL
1 parent 409c24d commit 78e69d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@
8888

8989
})->add(new AclAccountIsUserLoggedInMiddleware(['container' => $flextype, 'redirect' => 'admin.accounts.login']))
9090
->add(new AclAccountsIsUserLoggedInRolesOneOfMiddleware(['container' => $flextype,
91-
'redirect' => 'admin.accounts.no-access',
91+
'redirect' => ($flextype->acl->isUserLoggedIn() ? 'admin.accounts.no-access' : 'admin.accounts.login'),
9292
'roles' => 'admin']))
9393
->add('csrf');

0 commit comments

Comments
 (0)