X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/8697e69e3aefdb3c0ef9faba8bbd2938fa815685..251616969893b447852aad81a4e68be6853e202e:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 8b82b61..9e97267 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -2,18 +2,18 @@ $replyform = $Page == 'melding' && !empty($User); @list ($year, $page) = explode('/', trim($Args, '/')); -if ($User and $User->admin) { +if ($User and $User->admin('news')) { print ''."\n"; } if ($page and !is_numeric($page)) { - $edit = $User && $User->admin ? htmlspecialchars(@$_GET['edit']) : NULL; + $edit = $User && $User->admin('news') ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } $Place[1] = ' '.$Article->date.''; print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); - if ($User and $User->admin) { + if ($User and $User->admin('news')) { $taglist = []; foreach (glob("$Page/.tags/*") as $tagpath) { $tagname = pathinfo($tagpath, PATHINFO_BASENAME);