Skip to content

Commit

Permalink
fix: undefined route breaking current user
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbarletta committed Feb 10, 2018
1 parent 710ff26 commit d771d68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
};

$app->add(function($request, $response, $next) {
if (empty($route)) {
if (empty($request->getAttribute('route'))) {
// return next Action when route not found
return $next($request, $response);
}
Expand All @@ -85,7 +85,6 @@
});

$app->post('/graphql', function (Request $request, Response $response) {
session_start();
global $app_strings, $sugar_config, $app_list_strings,$sugar_config;
$default_language = $sugar_config['default_language'];
$app_list_strings = return_app_list_strings_language($default_language);
Expand Down

0 comments on commit d771d68

Please sign in to comment.