mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
adjust access permissions of new controller method
- fixes wrong veriable usage also Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
3550b12e3e
commit
cc1d24a008
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Reference in a new issue