Skip to content

Commit

Permalink
Initialize session on setup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tribut committed May 26, 2018
1 parent 02a93a5 commit c28426a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public function setup()

// 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
Expand Down

0 comments on commit c28426a

Please sign in to comment.