git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
auth: admin subpermission check for edit pages
[minimedit.git]
/
edit
/
page
/
index.php
diff --git
a/edit/page/index.php
b/edit/page/index.php
index 20ebcc5d9aa247636c7e9f6dd82172069f3dde44..32564ab299d39b345f48b9e0a148ed04f33cbece 100644
(file)
--- a/
edit/page/index.php
+++ b/
edit/page/index.php
@@
-1,7
+1,7
@@
<?php
ob_clean();
-if (!$User or !$User->admin(
'edit'
))
+if (!$User or !$User->admin(
"edit $Page$Args"
))
abort("geen beheersrechten", '401 unauthorised');
if ($_FILES) {