From e62b9ea586eb7763bfb64c8c4dc440a2819e1aa9 Mon Sep 17 00:00:00 2001 From: Michael Klier <chi@chimeric.de> Date: Sun, 13 Jul 2008 14:38:37 +0200 Subject: [PATCH] XML-RPC: added aclCheck() darcs-hash:20080713123837-23886-d2cabfd6bb00928f21a64ca317719831efaec3ae.gz --- lib/exe/xmlrpc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index cd8361b5d..cd25a3d33 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -117,6 +117,12 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { array('struct','int'), 'Returns a strukt about all recent changes since given timestamp.' ); + $this->addCallback( + 'wiki.aclCheck', + 'this:aclCheck', + array('struct', 'string'), + 'Returns the permissions of a given wiki page.' + ); $this->serve(); } @@ -239,6 +245,13 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { return 0; } + /** + * Returns the permissions of a given wiki page + */ + function aclCheck($id) { + return auth_quickaclcheck($id); + } + /** * Lists all links contained in a wiki page * -- GitLab