fix access on objects in container

This commit is contained in:
Uwe Steinmann 2025-02-12 21:37:57 +01:00
parent 15fc9bf312
commit a8f52db542

View File

@ -2383,8 +2383,8 @@ final class SeedDMS_RestapiController { /* {{{ */
} /* }}} */
function getRoles($request, $response) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$dms = $this->container->get('dms');
$userobj = $this->container->get('userobj');
$check = $this->checkIfAdmin($request, $response);
if($check !== true)
return $check;
@ -2398,8 +2398,8 @@ final class SeedDMS_RestapiController { /* {{{ */
} /* }}} */
function createRole($request, $response) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$dms = $this->container->get('dms');
$userobj = $this->container->get('userobj');
$check = $this->checkIfAdmin($request, $response);
if($check !== true)
@ -2422,8 +2422,8 @@ final class SeedDMS_RestapiController { /* {{{ */
} /* }}} */
function deleteRole($request, $response, $args) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$dms = $this->container->get('dms');
$userobj = $this->container->get('userobj');
$check = $this->checkIfAdmin($request, $response);
if($check !== true)
@ -2441,8 +2441,8 @@ final class SeedDMS_RestapiController { /* {{{ */
} /* }}} */
function getRole($request, $response, $args) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$dms = $this->container->get('dms');
$userobj = $this->container->get('userobj');
$check = $this->checkIfAdmin($request, $response);
if($check !== true)