From 9f8068d2077ef7add4108b4a8593764a39518d8d Mon Sep 17 00:00:00 2001 From: Mohamed Amine BERGAOUI Date: Tue, 30 Jul 2013 11:21:18 +0200 Subject: moving ACL remote functions to the ACL plugin --- inc/RemoteAPICore.php | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'inc/RemoteAPICore.php') diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php index 022dc37ed..4c940b39e 100644 --- a/inc/RemoteAPICore.php +++ b/inc/RemoteAPICore.php @@ -149,17 +149,8 @@ class RemoteAPICore { 'return' => 'int', 'doc' => 'Returns 2 with the supported RPC API version.', 'public' => '1' - ), 'dokuwiki.addAcl' => array( - 'args' => array('string','string','int'), - 'return' => 'int', - 'name' => 'addAcl', - 'doc' => 'Adds a new ACL rule.' - ), 'dokuwiki.delAcl' => array( - 'args' => array('string','string'), - 'return' => 'int', - 'name' => 'delAcl', - 'doc' => 'Delete an existing ACL rule.' - ), + ), + ); } @@ -776,17 +767,6 @@ class RemoteAPICore { return $ok; } - - - function addAcl($scope, $user, $level){ - $apa = new admin_plugin_acl(); - return $apa->_acl_add($scope, $user, $level); - } - - function delAcl($scope, $user){ - $apa = new admin_plugin_acl(); - return $apa->_acl_del($scope, $user); - } private function resolvePageId($id) { $id = cleanID($id); @@ -799,4 +779,3 @@ class RemoteAPICore { } - -- cgit v1.2.3