fix permission bug

This commit is contained in:
2023-12-04 15:11:04 +05:00
parent 69be5f2461
commit cd071f7c75
4 changed files with 10 additions and 10 deletions

View File

@@ -111,7 +111,7 @@ class LoanOrder extends Resource
}
if ($user->isOperator()) {
return $query->whereIn('branch_id', $user->branches()->pluck('id'));
return $query->whereIn('branch_id', $user->branches()->pluck('branches.id'));
}
return $query->where('user_id', $request->user()->id);