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

Merge branch 'cherry-pick-d7e352d4' into '1.3-fixes'

Merge branch '5983-write-acl-on-user-userroles-...' into '1.3-fixes'

See merge request fusiondirectory/fd!586
Showing with 4 additions and 4 deletions
+4 -4
...@@ -368,12 +368,12 @@ class ogroup extends simplePlugin ...@@ -368,12 +368,12 @@ class ogroup extends simplePlugin
$addingMembers = array_diff($userMembers, $savedMembers); $addingMembers = array_diff($userMembers, $savedMembers);
$removingMembers = array_diff($savedMembers, $userMembers); $removingMembers = array_diff($savedMembers, $userMembers);
foreach ($addingMembers as $dn) { foreach ($addingMembers as $dn) {
if (strpos($ui->get_permissions($dn, 'user/user', 'groupsMembership', $this->acl_skip_write()), 'w') === FALSE) { if (strpos($ui->get_permissions($dn, 'user/userRoles', 'groupsMembership', $this->acl_skip_write()), 'w') === FALSE) {
$errors[] = msgPool::permModify($dn, 'groupsMembership'); $errors[] = msgPool::permModify($dn, 'groupsMembership');
} }
} }
foreach ($removingMembers as $dn) { foreach ($removingMembers as $dn) {
if (strpos($ui->get_permissions($dn, 'user/user', 'groupsMembership', $this->acl_skip_write()), 'w') === FALSE) { if (strpos($ui->get_permissions($dn, 'user/userRoles', 'groupsMembership', $this->acl_skip_write()), 'w') === FALSE) {
$errors[] = msgPool::permModify($dn, 'groupsMembership'); $errors[] = msgPool::permModify($dn, 'groupsMembership');
} }
} }
......
...@@ -124,12 +124,12 @@ class roleGeneric extends simplePlugin ...@@ -124,12 +124,12 @@ class roleGeneric extends simplePlugin
$addingOccupants = array_diff($this->roleOccupant, $savedOccupants); $addingOccupants = array_diff($this->roleOccupant, $savedOccupants);
$removingOccupants = array_diff($savedOccupants, $this->roleOccupant); $removingOccupants = array_diff($savedOccupants, $this->roleOccupant);
foreach ($addingOccupants as $dn) { foreach ($addingOccupants as $dn) {
if (strpos($ui->get_permissions($dn, 'user/user', 'rolesMembership', $this->acl_skip_write()), 'w') === FALSE) { if (strpos($ui->get_permissions($dn, 'user/userRoles', 'rolesMembership', $this->acl_skip_write()), 'w') === FALSE) {
$errors[] = msgPool::permModify($dn, 'rolesMembership'); $errors[] = msgPool::permModify($dn, 'rolesMembership');
} }
} }
foreach ($removingOccupants as $dn) { foreach ($removingOccupants as $dn) {
if (strpos($ui->get_permissions($dn, 'user/user', 'rolesMembership', $this->acl_skip_write()), 'w') === FALSE) { if (strpos($ui->get_permissions($dn, 'user/userRoles', 'rolesMembership', $this->acl_skip_write()), 'w') === FALSE) {
$errors[] = msgPool::permModify($dn, 'rolesMembership'); $errors[] = msgPool::permModify($dn, 'rolesMembership');
} }
} }
......
  • SonarQube analysis reported 1 issue

    • :arrow_down_small: 1 minor

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. :arrow_down_small: Rename class "tabs_configInLdap" to match the regular expression ^[a-zA-Z][a-zA-Z0-9]*$. :blue_book:

    By Ghost User on 2019-05-09T12:52:14 (imported from GitLab)

  • SonarQube analysis reported 1 issue

    • :arrow_down_small: 1 minor

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. :arrow_down_small: Rename class "tabs_configInLdap" to match the regular expression ^[a-zA-Z][a-zA-Z0-9]*$. :blue_book:

    By Ghost User on 2019-05-16T14:08:43 (imported from GitLab)

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