Skip to content

Commit

Permalink
Don't allow customers to change own groups and status
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Aug 13, 2020
1 parent 3a2f874 commit 02cb20d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -129,7 +129,7 @@ public function editItem( $id, array $values )
$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' );
$item = $manager->getItem( $id, ['customer/group'], true );

unset( $values['customer.id'] );
unset( $values['customer.id'], $values['customer.groups'], $values['customer.status'] );
$item->fromArray( $values );

return $manager->saveItem( $item );
Expand Down

0 comments on commit 02cb20d

Please sign in to comment.