mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed exception in ElementPermissionListener.
This commit is contained in:
parent
ffdeacc2ca
commit
b48b9b78b4
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class ElementPermissionListener
|
||||||
|
|
||||||
//If the user is not allowed to edit or read this property, reset all values.
|
//If the user is not allowed to edit or read this property, reset all values.
|
||||||
if ((!$this->isGranted('read', $annotation, $element)
|
if ((!$this->isGranted('read', $annotation, $element)
|
||||||
|| !$this->isGranted('edit', $annotation->getReadOperationName(), $element))) {
|
|| !$this->isGranted('edit', $annotation, $element))) {
|
||||||
//Set value to old value, so that there a no change to this property
|
//Set value to old value, so that there a no change to this property
|
||||||
if (isset($old_data[$property->getName()])) {
|
if (isset($old_data[$property->getName()])) {
|
||||||
$property->setValue($element, $old_data[$property->getName()]);
|
$property->setValue($element, $old_data[$property->getName()]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue