Fixed #7164 - change table name to permission_groups

This commit is contained in:
snipe 2019-06-14 10:37:20 -07:00
parent 26a1181765
commit a85251aa83

View file

@ -491,7 +491,7 @@ class User extends SnipeModel implements AuthenticatableContract, CanResetPasswo
public function scopeByGroup($query, $id) {
return $query->whereHas('groups', function ($query) use ($id) {
$query->where('groups.id', '=', $id);
$query->where('permission_groups.id', '=', $id);
});
}