Skip to content

Commit

Permalink
fix(acl): ensure sets are properly filtered according to current driver
Browse files Browse the repository at this point in the history
an issue on public filter was causing policy job to crash on installation
with multiple connector driver due to a missing filter.

Closes #17
  • Loading branch information
warlof committed Sep 19, 2019
1 parent 585b69a commit 90ac92f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ public function getAllianceSets()
*/
public function getPublicSets()
{
$rows = Set::where('is_public', true)
$rows = Set::where('connector_type', $this->connector_type)
->where('is_public', true)
->select('connector_id');

return $rows;
Expand Down

0 comments on commit 90ac92f

Please sign in to comment.