Initialize session on setup (#1451)

This makes the plugin compatible with `system.session.initialize = false`
which makes it possible to have no session cookie (for frontend users)
while the admin login still works.
This commit is contained in:
Felix Eckhofer
2018-06-08 21:43:02 +00:00
committed by Andy Miller
parent e33e7a83c3
commit d293534c3c

View File

@@ -144,6 +144,7 @@ class AdminPlugin extends Plugin
// Only activate admin if we're inside the admin path.
if ($this->isAdminPath()) {
$this->grav['session']->init();
$this->active = true;
// Set cache based on admin_cache option