fix(auth): correct Gate usage for customer permissions
Updated the Gate check to use forUser method for proper customer context.
This commit is contained in:
parent
3426ea22a9
commit
8c484ae053
1 changed files with 1 additions and 1 deletions
|
|
@ -58,6 +58,6 @@ class SendMissingOrderReminderJob implements ShouldQueue
|
|||
{
|
||||
$customer = $employee->customer;
|
||||
|
||||
return $customer && Gate::check('customerPassOrders', $customer);
|
||||
return $customer && Gate::forUser($customer)->check('customerPassOrders');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue