role->isAtLeastEqualsTo(UserRole::Admin); } public function view(Customer | User $user, Discount | DiscountDto $_): bool { if ($user instanceof Customer) { return false; } return $user->role->isAtLeastEqualsTo(UserRole::Admin); } public function create(Customer | User $user): bool { if ($user instanceof Customer) { return false; } return $user->role->isAtLeastEqualsTo(UserRole::Admin); } public function update(Customer | User $user, Discount | DiscountDto $_): bool { if ($user instanceof Customer) { return false; } return $user->role->isAtLeastEqualsTo(UserRole::Admin); } public function delete(Customer | User $user, Discount | DiscountDto $_): bool { if ($user instanceof Customer) { return false; } return $user->role->isAtLeastEqualsTo(UserRole::Admin); } }