I had a shell-script which I wanted to add acl checking from... I thought I could add it to bin/dwpage.php, but it doesn't seem to work (always returns one (read)), even though when accessing things through the web interface, you get: You are currently not logged in Your current permission for this page is 0 Any thoughts? Thanks -Robin diff --git a/bin/dwpage.php b/bin/dwpage.php index 211bc5a..d2af54d 100755 --- a/bin/dwpage.php +++ b/bin/dwpage.php @@ -222,6 +222,23 @@ if ( $OPTS->has('s') or $OPTS->has('system') ) { switch ( $OPTS->arg(0) ) { #---------------------------------------------------------------------- + case 'acl': + $WIKI_ID = $OPTS->arg(1); + if ( !$WIKI_ID ) { + fwrite( STDERR, "Wiki page ID required\n"); + exit(1); + } + $WIKI_FN = wikiFN($WIKI_ID); + if ( !file_exists($WIKI_FN) ) { + fwrite( STDERR, "$WIKI_ID does not yet exist\n"); + exit(1); + } + $ACL_FN = auth_aclcheck($WIKI_ID,'',null); + echo "$WIKI_ID $ACL_FN\n"; + break; + #---------------------------------------------------------------------- case 'checkout': -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist