mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed UserObject::getAccess() after cloning the object
This commit is contained in:
parent
8f3ac75afd
commit
231c8a0f4c
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user