Skip to content

Commit

Permalink
Fix regression in getJobDataSet introduced in ubccr#733
Browse files Browse the repository at this point in the history
This change was incorrectly ommited in ubccr#733.
  • Loading branch information
jpwhite4 committed Mar 1, 2019
1 parent fc28069 commit 7041e5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/Rest/Controllers/WarehouseControllerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,8 @@ private function getJobDataSet(XDUser $user, $realm, $jobId, $action)
}

$QueryClass = "\\DataWarehouse\\Query\\$realm\\JobDataset";
$query = new $QueryClass(array('primary_key' => $jobId), $action);
$params = array('primary_key' => $jobId);
$query = new $QueryClass($params, $action);

$allRoles = $user->getAllRoles();
$query->setMultipleRoleParameters($allRoles, $user);
Expand Down

0 comments on commit 7041e5e

Please sign in to comment.