Skip to content

Commit

Permalink
Themes Admin 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jun 21, 2020
1 parent 0dbef3e commit f1cbe5f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.0.5"></a>
# [1.0.5](https://github.com/flextype-plugins/form-admin/compare/v1.0.4...v1.0.5) (2020-06-21)

### Features

* **core** updates for new ACL and Accounts Admin Plugins.

<a name="1.0.4"></a>
# [1.0.4](https://github.com/flextype-plugins/themes-admin/compare/v1.0.3...v1.0.4) (2020-05-07)

Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Themes Admin
version: 1.0.4
version: 1.0.5
description: Themes Admin plugin to manage site themes for the website frontend.
icon: fas fa-paint-brush
author:
Expand Down
8 changes: 6 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Flextype;

$app->group('/' . $admin_route, function () use ($app) : void {
$app->group('/' . $admin_route, function () use ($app, $flextype) : void {

// ThemesController
$app->get('/themes', 'ThemesController:index')->setName('admin.themes.index');
Expand All @@ -24,4 +24,8 @@
$app->post('/templates/duplicate', 'TemplatesController:duplicateProcess')->setName('admin.templates.duplicateProcess');
$app->post('/templates/delete', 'TemplatesController:deleteProcess')->setName('admin.templates.deleteProcess');

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

0 comments on commit f1cbe5f

Please sign in to comment.