mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
authorizeTask() should be public
This commit is contained in:
@@ -396,7 +396,7 @@ class AdminBaseController
|
||||
*
|
||||
* @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->grav['uri']->extension() === 'json') {
|
||||
|
||||
Reference in New Issue
Block a user