wip
This commit is contained in:
1 parent
9123eed007
commit
6cbb54c74b
24 files changed
+950
-474
No files matched your search
@@ -34,7 +34,9 @@ public function name(): string
|
||||
*/
|
||||
public function authorizedToRun(Request $request, $model)
|
||||
{
|
||||
$this->authorizedToRunAction = ! $model->paid && $model->status === OrderRepo::PENDING;
|
||||
/** @var \App\Models\Order\Card\CardOrder */
|
||||
$cardOrder = $model;
|
||||
$this->authorizedToRunAction = ! $cardOrder->paid && $cardOrder->status === OrderRepo::PENDING;
|
||||
|
||||
return $this->authorizedToRunAction;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user