mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not run authentication and pass user to addRoute hook
This commit is contained in:
parent
5d5a7da2d0
commit
42de312953
|
@ -26,13 +26,13 @@ if(true) {
|
|||
include("inc/inc.Init.php");
|
||||
include("inc/inc.Extension.php");
|
||||
include("inc/inc.DBInit.php");
|
||||
include("inc/inc.Authentication.php");
|
||||
// include("inc/inc.Authentication.php");
|
||||
|
||||
require "vendor/autoload.php";
|
||||
|
||||
$c = new \Slim\Container(); //Create Your container
|
||||
$c['notFoundHandler'] = function ($c) use ($settings, $dms, $user, $theme) {
|
||||
return function ($request, $response) use ($c, $settings, $dms, $user, $theme) {
|
||||
$c['notFoundHandler'] = function ($c) use ($settings, $dms, $theme) {
|
||||
return function ($request, $response) use ($c, $settings, $dms, $theme) {
|
||||
$uri = $request->getUri();
|
||||
if($uri->getBasePath())
|
||||
$file = $uri->getPath();
|
||||
|
@ -55,7 +55,7 @@ if(true) {
|
|||
if(isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) {
|
||||
if (method_exists($hookObj, 'addRoute')) {
|
||||
$hookObj->addRoute(array('dms'=>$dms, 'user'=>$user, 'app'=>$app, 'settings'=>$settings));
|
||||
$hookObj->addRoute(array('dms'=>$dms, 'app'=>$app, 'settings'=>$settings));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user