1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00
dokuwiki_ynh/sources/lib/plugins/acl/remote.php
2014-02-11 14:56:25 +01:00

30 lines
853 B
PHP

<?php
class remote_plugin_acl extends DokuWiki_Remote_Plugin {
function _getMethods() {
return array(
'addAcl' => array(
'args' => array('string','string','int'),
'return' => 'int',
'name' => 'addAcl',
'doc' => 'Adds a new ACL rule.'
), 'delAcl' => array(
'args' => array('string','string'),
'return' => 'int',
'name' => 'delAcl',
'doc' => 'Delete an existing ACL rule.'
),
);
}
function addAcl($scope, $user, $level){
$apa = plugin_load('admin', 'acl');
return $apa->_acl_add($scope, $user, $level);
}
function delAcl($scope, $user){
$apa = plugin_load('admin', 'acl');
return $apa->_acl_del($scope, $user);
}
}