This commit is contained in:
Yuri Kuznetsov
2021-10-29 13:48:03 +03:00
parent 097a115595
commit 6f7ef14482
4 changed files with 12 additions and 10 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ use Espo\Core\{
use Espo\Core\Acl\Exceptions\NotImplemented;
use StdClass;
use stdClass;
class RecordTree extends Record
{
@@ -200,7 +200,7 @@ class RecordTree extends Record
return true;
}
public function getCategoryData(?string $id): ?StdClass
public function getCategoryData(?string $id): ?stdClass
{
if (!$this->acl->check($this->entityType, AclTable::ACTION_READ)) {
throw new Forbidden();
@@ -293,7 +293,7 @@ class RecordTree extends Record
}
}
public function update(string $id, StdClass $data, UpdateParams $params): Entity
public function update(string $id, stdClass $data, UpdateParams $params): Entity
{
if (!empty($data->parentId) && $data->parentId === $id) {
throw new Forbidden();