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

Merge branch '5788-some-permissions-checks-in-webservice-not-working' into '1.3-dev'

Resolve "Some Permissions checks in webservice not working"

See merge request fusiondirectory/fd-plugins!165
Showing with 3 additions and 3 deletions
+3 -3
......@@ -610,7 +610,7 @@ class fdRPCService
}
foreach ($dns as $dn) {
if (!preg_match('/w/', $ui->get_permissions($dn, 'user/password'))) {
if (!preg_match('/w/', $ui->get_permissions($dn, 'user/user', 'userLock'))) {
$disallowed[] = $dn;
}
}
......@@ -679,7 +679,7 @@ class fdRPCService
}
foreach ($dns as $dn) {
if (!preg_match('/r/', $ui->get_permissions($dn, 'user/password'))) {
if (!preg_match('/r/', $ui->get_permissions($dn, 'user/user', 'userLock'))) {
$disallowed[] = $dn;
}
}
......@@ -729,7 +729,7 @@ class fdRPCService
$pwRecovery->email_address = $email;
$dn = $pwRecovery->step2();
if ($pwRecovery->step == 2) { /* No errors */
if (!preg_match('/w/', $ui->get_permissions($dn, 'user/password'))) {
if (!preg_match('/w/', $ui->get_permissions($dn, 'user/user', 'userPassword'))) {
return array('errors' => array(msgPool::permModify($dn)));
}
$token = $pwRecovery->generateAndStoreToken();
......
Supports Markdown
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