X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/bd29158976da14f04451d58a8713674934c78379..fc1eaa7b91bd44d7939c67b1d3d8aef50af3c5db:/edit/nieuws/tag/index.php diff --git a/edit/nieuws/tag/index.php b/edit/nieuws/tag/index.php index d4edb71..ba57adc 100644 --- a/edit/nieuws/tag/index.php +++ b/edit/nieuws/tag/index.php @@ -1,15 +1,13 @@ path) abort("pagina niet opgegeven", '409 input error'); -$pagename = ltrim($Args, '/').'.html'; +$pagename = ltrim($Page->path, '/').'.html'; +if (!$User->admin("edit $pagename")) + abort("geen beheersrechten", '401 unauthorised'); + @list ($category, $year, $article) = explode('/', $pagename); if (empty($article) or !file_exists($pagename)) abort("artikel onbekend: $pagename", '404 page error');