Conform to authorize

This commit is contained in:
Flavio Copes
2015-09-11 15:00:03 +02:00
parent 65efa010f6
commit d66ecd58fd
4 changed files with 26 additions and 26 deletions

View File

@@ -191,7 +191,7 @@ class Admin
}
}
return $this->authorise();
return $this->authorize();
}
/**
@@ -201,12 +201,12 @@ class Admin
*
* @return bool
*/
public function authorise($action = 'admin.login')
public function authorize($action = 'admin.login')
{
$action = (array)$action;
foreach ($action as $a) {
if ($this->user->authorise($a)) {
if ($this->user->authorize($a)) {
return true;
}
}