This commit is contained in:
@@ -22,7 +22,7 @@ class PaymentController extends Controller
|
||||
$openid = $request->attributes->get('fastapi_openid');
|
||||
|
||||
if ($openid === null) {
|
||||
Gate::authorize('create', Booking::class);
|
||||
Gate::authorize('pay', $booking);
|
||||
}
|
||||
|
||||
$payment = $this->initiatePaymentAction->handle($booking);
|
||||
|
||||
Reference in New Issue
Block a user