Skip to content

Commit

Permalink
Merge pull request #41 from jpritcha/Branch_jpritcha
Browse files Browse the repository at this point in the history
Added the 401 error page to the guest allowed ACL.
  • Loading branch information
andresgutierrez committed May 17, 2015
2 parents 724b04a + bc89aae commit 485e50a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/plugins/SecurityPlugin.php
Expand Up @@ -57,7 +57,7 @@ public function getAcl()
'index' => array('index'),
'about' => array('index'),
'register' => array('index'),
'errors' => array('show404', 'show500'),
'errors' => array('show401', 'show404', 'show500'),
'session' => array('index', 'register', 'start', 'end'),
'contact' => array('index', 'send')
);
Expand Down Expand Up @@ -115,6 +115,7 @@ public function beforeDispatch(Event $event, Dispatcher $dispatcher)
'controller' => 'errors',
'action' => 'show401'
));
$this->session->destroy();
return false;
}
}
Expand Down

0 comments on commit 485e50a

Please sign in to comment.