mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +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.
|
* @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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user