Skip to content

Commit

Permalink
#1543 | Include only unvoided dashboards when fetching dashboards for…
Browse files Browse the repository at this point in the history
… a user group
  • Loading branch information
1t5j0y committed Nov 11, 2024
1 parent 87c1b2a commit 3d96864
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function getGroupDashboards(privilegeService, entityService) {
const ownedGroupsQuery = _.map(privilegeService.ownedGroups(), ({groupUuid}) => `group.uuid = '${groupUuid}'`).join(' OR ');
return entityService.getAllNonVoided(GroupDashboard.schema.name)
.filtered(_.isEmpty(ownedGroupsQuery) ? 'uuid = null' : ownedGroupsQuery)
.filtered('TRUEPREDICATE DISTINCT(dashboard.uuid)');
.filtered('TRUEPREDICATE DISTINCT(dashboard.uuid)')
.filtered('dashboard.voided = false');
}

function getDashboardsBasedOnPrivilege(privilegeService, entityService, customDashboardService) {
Expand Down

0 comments on commit 3d96864

Please sign in to comment.