Fixed UserObject::getAccess() after cloning the object

This commit is contained in:
Matias Griese 2022-01-04 18:47:45 +02:00
parent 8f3ac75afd
commit 231c8a0f4c
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
# v1.7.27
## mm/dd/2022
3. [](#bugfix)
* Fixed `UserObject::getAccess()` after cloning the object
# v1.7.26
## 01/03/2022

View File

@ -939,7 +939,7 @@ class UserObject extends FlexObject implements UserInterface, Countable
protected function getAccess(): Access
{
if (null === $this->_access) {
$this->getProperty('access');
$this->_access = new Access($this->getProperty('access'));
}
return $this->_access;
@ -955,8 +955,6 @@ class UserObject extends FlexObject implements UserInterface, Countable
$value = new Access($value);
}
$this->_access = $value;
return $value->jsonSerialize();
}