X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=admin_pages.php;h=4081f9452eb92a9b552bf23eb1ee209c144af85d;hb=c594772865477bd410abd7a63fac6612be5956ca;hp=87e18062dde1d31ad3c9a3cb98e86db4d3b101ce;hpb=829a67d41aacdf529455c0f315665c407ad5d35b;p=wfpl-cms.git diff --git a/admin_pages.php b/admin_pages.php index 87e1806..4081f94 100644 --- a/admin_pages.php +++ b/admin_pages.php @@ -36,7 +36,7 @@ function admin_pages_get_fields() { function admin_pages_main() { - session_auth_must('edit_page'); + session_auth_must('admin_pages'); $id = _REQUEST_cut('edit_id'); if($id) { @@ -72,6 +72,7 @@ function admin_pages_main() { # admin-only access to view pages with no filename function admin_pages_main_display($id) { cms_display_content($GLOBALS['wfpl_main_template'], 'where id=%i', $id); + $GLOBALS['wfpl_main_template']->data['$admin_links']['$edit_page_id'] = $id; } function admin_pages_main_delete($id) {