Cleanup and fixes

This commit is contained in:
Frédéric Guillot
2015-01-02 21:48:26 -05:00
parent 45c95d74fc
commit 0ebdd4ddfd
11 changed files with 24 additions and 33 deletions

View File

@@ -169,7 +169,7 @@ abstract class Base
*/
public function handleAuthenticatedUser($controller, $action)
{
if (! $this->authentication->isAuthenticated($controller, $action)) {
if (! $this->authentication->isAuthenticated()) {
if ($this->request->isAjax()) {
$this->response->text('Not Authorized', 401);