Skip to content

Commit

Permalink
Fixed loading of shortcuts for current user (consideration of shareGl…
Browse files Browse the repository at this point in the history
…obally) (#77)
  • Loading branch information
wujku authored and fashxp committed Jan 23, 2020
1 parent bf2abae commit eaa4170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,9 @@ public function loadShortCutsAction(Request $request) {

$list = new SavedSearch\Listing();
$list->setCondition(
"(ownerId = ? OR sharedUserIds LIKE ?) AND shortCutUserIds LIKE ?",
"(shareGlobally = ? OR ownerId = ? OR sharedUserIds LIKE ?) AND shortCutUserIds LIKE ?",
[
true,
$this->getAdminUser()->getId(),
'%,' . $this->getAdminUser()->getId() . ',%',
'%,' . $this->getAdminUser()->getId() . ',%'
Expand Down

0 comments on commit eaa4170

Please sign in to comment.