X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/8697e69e3aefdb3c0ef9faba8bbd2938fa815685..251616969893b447852aad81a4e68be6853e202e:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 8298c6d..c93fcbc 100644 --- a/page.inc.php +++ b/page.inc.php @@ -10,7 +10,7 @@ ob_start(); if ($User) { print '

'; printf('Ingelogd: %s', '/login', $User->login); - if ($User->admin) { + if ($User->admin('edit')) { $editpage = $Page.$Args; if (is_dir($editpage)) { if (file_exists("$editpage/index.html")) { @@ -44,7 +44,7 @@ register_shutdown_function(function () { print "\n"; global $User; - if ($User and $User->admin) { + if ($User and $User->admin('edit')) { $ckesrc = '/lib/ckeditor'; # local install if (!file_exists(DOCROOT . $ckesrc)) { $ckesrc = '//cdn.ckeditor.com/4.7.3/full-all'; # remote fallback