From a8f52db54208bd312547ace7bb476805c1ad85f3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 12 Feb 2025 21:37:57 +0100 Subject: [PATCH] fix access on objects in container --- restapi/index.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/restapi/index.php b/restapi/index.php index 1cdec4cee..74075198e 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -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)