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