Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Validate token
  • Loading branch information
marcoAntonioNina committed Feb 27, 2024
commit c77ed1b001c71e707aae168bd069f01f434b386e
2 changes: 1 addition & 1 deletion ProcessMaker/Managers/DataManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function loadUserData(array $data = [], ProcessRequestToken $token = nul
$data['_user'] = $userData;
}
// Magic variable: _user is removed when the task is SelfService.
if ($token->is_self_service === 1) {
if ($token && $token->is_self_service === 1) {
unset($data['_user']);
}

Expand Down