X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/19cde41f182998a36cdac76d530881aaea24c719..d25b72d1e59591449d5efeea4b4063d250ebb1a8:/edit.php diff --git a/edit.php b/edit.php index fe80528..1856336 100755 --- a/edit.php +++ b/edit.php @@ -5,8 +5,7 @@ function abort($status, $body) { exit; } -require 'auth.inc.php'; -if (!$Admin) +if (!@$User['admin']) abort('401 unauthorised', "geen beheersrechten"); if (!$_POST)