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)