Skip to content
Snippets Groups Projects
Commit e62b9ea5 authored by Michael Klier's avatar Michael Klier
Browse files

XML-RPC: added aclCheck()

darcs-hash:20080713123837-23886-d2cabfd6bb00928f21a64ca317719831efaec3ae.gz
parent 1b5f82cb
No related branches found
No related tags found
No related merge requests found
......@@ -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
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment