Skip to content

Commit

Permalink
Update PowerBIEmbedConfigs.php
Browse files Browse the repository at this point in the history
  • Loading branch information
illya-havsiyevych authored Mar 15, 2024
1 parent 2042cfa commit 3f894db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/quanthub_core/src/PowerBIEmbedConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ public function getPowerBiEmbedToken($token, $reportId, $datasetIds) {
];

if (count($entitledDatasets) > 0) {
$payload['identities'] = [['username' => $powerbiUser, 'roles' => [$powerbiRole], 'datasets' => $entitledDatasets]];
$payload['identities'] = [[
'username' => $powerbiUser,
'roles' => [$powerbiRole],
'datasets' => $entitledDatasets
]];
}

$payload_json = json_encode($payload);
Expand Down

0 comments on commit 3f894db

Please sign in to comment.