diff options
author | Michael Klier <chi@chimeric.de> | 2008-07-13 14:38:37 +0200 |
---|---|---|
committer | Michael Klier <chi@chimeric.de> | 2008-07-13 14:38:37 +0200 |
commit | e62b9ea586eb7763bfb64c8c4dc440a2819e1aa9 (patch) | |
tree | 41bf29cce55827d4ef00244ca9121b749d28ac82 | |
parent | 1b5f82cb521991619bd5ae26e07d8c6588e7bd18 (diff) | |
download | rpg-e62b9ea586eb7763bfb64c8c4dc440a2819e1aa9.tar.gz rpg-e62b9ea586eb7763bfb64c8c4dc440a2819e1aa9.tar.bz2 |
XML-RPC: added aclCheck()
darcs-hash:20080713123837-23886-d2cabfd6bb00928f21a64ca317719831efaec3ae.gz
-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 * |