authorizeTask() should be public

This commit is contained in:
Andy Miller
2017-08-14 20:50:56 -06:00
parent 0e555a33b3
commit 1b6223ac80

View File

@@ -396,7 +396,7 @@ class AdminBaseController
* *
* @return bool True if authorized. False if not. * @return bool True if authorized. False if not.
*/ */
protected function authorizeTask($task = '', $permissions = []) public function authorizeTask($task = '', $permissions = [])
{ {
if (!$this->admin->authorize($permissions)) { if (!$this->admin->authorize($permissions)) {
if ($this->grav['uri']->extension() === 'json') { if ($this->grav['uri']->extension() === 'json') {