Browse Source

adjust access permissions of new controller method

- fixes wrong veriable usage also

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/27474/head
Arthur Schiwon 5 years ago
parent
commit
00ffad3c60
No known key found for this signature in database GPG Key ID: 7424F1874854DF23
  1. 6
      apps/provisioning_api/lib/Controller/UsersController.php

6
apps/provisioning_api/lib/Controller/UsersController.php

@ -604,6 +604,10 @@ class UsersController extends AUserData {
}
/**
* @NoAdminRequired
* @NoSubAdminRequired
* @PasswordConfirmationRequired
*
* @throws OCSException
*/
public function editUserMultiValue(
@ -663,7 +667,7 @@ class UsersController extends AUserData {
$mailCollection = $userAccount->getPropertyCollection(IAccountManager::COLLECTION_EMAIL);
$targetProperty = null;
foreach ($mailCollection->getProperties() as $property) {
if ($property->getValue() === $value) {
if ($property->getValue() === $key) {
$targetProperty = $property;
break;
}

Loading…
Cancel
Save