mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 04:57:40 +02:00
Check to prevent failure
This commit is contained in:
@@ -432,7 +432,11 @@ class Admin
|
||||
*/
|
||||
public function accessLevels()
|
||||
{
|
||||
return $this->grav['pages']->accessLevels();
|
||||
if (method_exists($this->grav['pages'], 'accessLevels')) {
|
||||
return $this->grav['pages']->accessLevels();
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user