1
0

Merge branch 'master' of github.com:agourd/dev-fsociety

This commit is contained in:
Korlan Colas
2015-12-04 06:19:17 +01:00

@ -18,6 +18,15 @@ class UsersController extends AppController
$this->Auth->allow(['logout']);
}
public function isAuthorized($user)
{
// A logged user can do an action about infos
if($this->request->action === 'add' && $user['id'] > 0)
{
return true;
}
}
public function login()
{
if ($this->request->is('post'))