ldc-cocotte/app/Policies/Frontend/ShopPolicy.php
Jérémy Munsch 8892a55322
feat(orders): implement CancelOrder action and output enum
Added CancelOrder action with output handling for order cancellation.
Introduced CancelOrderOutput enum to represent cancellation states.
Refactored ShopPolicy to simplify user checks in viewPickupTimeslots.
Updated tests to reflect changes in policy behavior.
2026-11-15 20:05:41 +01:00

17 lines
296 B
PHP

<?php
declare(strict_types=1);
namespace App\Policies\Frontend;
use App\Models\Customer;
use App\Models\Shop;
use App\Models\User;
class ShopPolicy
{
public function viewPickupTimeslots(null | User | Customer $user, Shop $__): bool
{
return $user instanceof Customer;
}
}