Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-29 14:55:03 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-29 14:55:03 +0300
commit8d3fb41a3b59175734f519872715c12bf081daa6 (patch)
tree47ebed1876cc1f4c53ae9c98dbc65f9fa400b375
parent38a2a6b68ae895e8d3117548e0822b8160379271 (diff)
adjust access permissions of new controller method
- fixes wrong veriable usage also Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-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;
}