fix permission bug
This commit is contained in:
1 parent
69be5f2461
commit
cd071f7c75
4 files changed
+10
-10
No files matched your search
@@ -111,7 +111,7 @@ public static function indexQuery(NovaRequest $request, $query)
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user