ldc-cocotte/app/Policies/Frontend/CustomerPolicy.php

21 lines
329 B
PHP
Raw Permalink Normal View History

2026-06-14 21:32:07 +02:00
<?php
declare(strict_types=1);
namespace App\Policies\Frontend;
use App\Models\Customer;
use App\Models\User;
class CustomerPolicy
{
public function manageOwnProfile(null | Customer | User $user): bool
{
if ($user instanceof User) {
return false;
}
return $user !== null;
}
}