forgot to fetch settings from container

This commit is contained in:
Uwe Steinmann 2020-08-07 17:51:55 +02:00
parent e6f20b8996
commit b4944cfc64

View File

@ -443,6 +443,7 @@ class RestapiController { /* {{{ */
function createFolder($request, $response, $args) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$settings = $this->container->config;
if(!$userobj) {
return $response->withJson(array('success'=>false, 'message'=>'Not logged in', 'data'=>''), 403);
@ -584,6 +585,7 @@ class RestapiController { /* {{{ */
function uploadDocument($request, $response, $args) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$settings = $this->container->config;
if(!$userobj) {
return $response->withJson(array('success'=>false, 'message'=>'Not logged in', 'data'=>''), 403);
@ -748,6 +750,7 @@ class RestapiController { /* {{{ */
function uploadDocumentPut($request, $response, $args) { /* {{{ */
$dms = $this->container->dms;
$userobj = $this->container->userobj;
$settings = $this->container->config;
if(!$userobj) {
return $response->withJson(array('success'=>false, 'message'=>'Not logged in', 'data'=>''), 403);