diff options
-rw-r--r-- | lib/exe/xmlrpc.php | 13 |
1 files changed, 13 insertions, 0 deletions
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 * |