Commit db085ed8 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6036-webservice-does-not-allow-search-on-own-dn-with-self-acls' into '1.4-dev'

Resolve "Webservice does not allow search on own dn with self ACLs"

See merge request fusiondirectory/fd-plugins!686
parents 9f5b1a2f ac090ea0
...@@ -220,7 +220,7 @@ class fdRPCService ...@@ -220,7 +220,7 @@ class fdRPCService
protected function _ls ($type, $attrs = NULL, $ou = NULL, $filter = '', $scope = 'subtree', $templateSearch = FALSE) protected function _ls ($type, $attrs = NULL, $ou = NULL, $filter = '', $scope = 'subtree', $templateSearch = FALSE)
{ {
global $config, $ui; global $config, $ui;
$this->checkAccess($type); $this->checkAccess($type, NULL, $ou);
if (!in_array($scope, ['base','one','subtree'])) { if (!in_array($scope, ['base','one','subtree'])) {
throw new WebServiceError(sprintf('Invalid scope "%s"', $scope)); throw new WebServiceError(sprintf('Invalid scope "%s"', $scope));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment