@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $app->post('/fieldsets/delete', 'FieldsetsController:deleteProcess')->setName('admin.fieldsets.deleteProcess'); |
| 19 | 19 | |
| 20 | 20 | })->add(new AclIsUserLoggedInMiddleware(['container' => $flextype, 'redirect' => 'admin.accounts.login'])) |
| 21 | - ->add(new AclIsUserLoggedInRolesInMiddleware(['container' => $flextype, |
|
| 21 | + ->add(new AclIsUserLoggedInRolesInMiddleware(['container' => $flextype, |
|
| 22 | 22 | 'redirect' => ($flextype->acl->isUserLoggedIn() ? 'admin.accounts.no-access' : 'admin.accounts.login'), |
| 23 | 23 | 'roles' => 'admin'])) |
| 24 | - ->add('csrf'); |
|
| 24 | + ->add('csrf'); |
|
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Flextype; |
| 6 | 6 | |
| 7 | -$app->group('/' . $admin_route, function () use ($app, $flextype) { |
|
| 7 | +$app->group('/' . $admin_route, function() use ($app, $flextype) { |
|
| 8 | 8 | |
| 9 | 9 | // FieldsetsController |
| 10 | 10 | $app->get('/fieldsets', 'FieldsetsController:index')->setName('admin.fieldsets.index'); |