Skip to content

Commit 72c97d5

Browse files
committed
Use home route when an automated task completes a process or when the user is empty
1 parent 1b626f6 commit 72c97d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProcessMaker/Models/ProcessRequestToken.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,8 +1414,8 @@ private function getElementDestination($elementDestinationType, $elementDestinat
14141414
$elementDestination = route('tasks.index');
14151415
break;
14161416
case 'homepageDashboard':
1417-
if (hasPackage('package-dynamic-ui')) {
1418-
$user = auth()->user();
1417+
$user = auth()->user();
1418+
if (hasPackage('package-dynamic-ui') && $user) {
14191419
$elementDestination = \ProcessMaker\Package\PackageDynamicUI\Models\DynamicUI::getHomePage($user);
14201420
} else {
14211421
$elementDestination = route('home');

0 commit comments

Comments
 (0)