mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix access on objects in container
This commit is contained in:
parent
15fc9bf312
commit
a8f52db542
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user