mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 02:10:37 +02:00
Pages Plugin: fix access bug
This commit is contained in:
@@ -157,6 +157,9 @@
|
||||
// Get current page
|
||||
$current_page = Pages::$pages->select('[slug="'.$data[0].'"]', null);
|
||||
|
||||
// For old Monstra
|
||||
$current_page['access'] = (isset($current_page['access'])) ? $current_page['access'] : 'public' ;
|
||||
|
||||
if (count($current_page) != 0) {
|
||||
if ($current_page['parent'] != '') {
|
||||
$c_p = $current_page['parent'];
|
||||
|
Reference in New Issue
Block a user