summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-29 13:55:03 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-30 00:48:05 +0200
commit00ffad3c6065bc34bc4bde1a80f1a33658da3094 (patch)
tree6256fde44ef36a296b8536f2fd5258b30919066f /apps/provisioning_api/lib
parent6eda6af5c6360a51b07faa311d1d01f8d84f8051 (diff)
downloadnextcloud-server-00ffad3c6065bc34bc4bde1a80f1a33658da3094.tar.gz
nextcloud-server-00ffad3c6065bc34bc4bde1a80f1a33658da3094.zip
adjust access permissions of new controller method
- fixes wrong veriable usage also Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index 65789e14b7f..f5993e3aa5c 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/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;
}