Skip to content

Commit

Permalink
Fix issue where staff list is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Oct 23, 2022
1 parent c61f8de commit 3128a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/models/Staffs_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function scopeIsEnabled($query)
public function scopeWhereNotSuperUser($query)
{
$query->whereHas('user', function ($q) {
$q->where('super_user', '!=', 1);
$q->where('super_user', '!=', 1)->orWhereNull('super_user');
});
}

Expand Down

0 comments on commit 3128a19

Please sign in to comment.