Skip to content

Commit

Permalink
Revert "Fixed snipe#7164 - change table name to permission_groups"
Browse files Browse the repository at this point in the history
This reverts commit a85251a.
  • Loading branch information
ShadowLinks committed Jun 19, 2019
1 parent a94e8d6 commit 1bb2d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public function advancedTextSearch(Builder $query, array $terms) {

public function scopeByGroup($query, $id) {
return $query->whereHas('groups', function ($query) use ($id) {
$query->where('permission_groups.id', '=', $id);
$query->where('groups.id', '=', $id);
});
}

Expand Down

0 comments on commit 1bb2d49

Please sign in to comment.