<?php

namespace App\Policies;

use App\Models\ClienteCategoria;
use App\Models\User;

class ClienteCategoriaPolicy
{
    public function viewAny(User $user): bool
    {
        return $user->can('pos.vender') || $user->can('caja.administrar');
    }

    public function create(User $user): bool
    {
        return $user->can('pos.vender');
    }

    public function update(User $user, ClienteCategoria $clienteCategoria): bool
    {
        return $user->can('pos.vender');
    }

    public function delete(User $user, ClienteCategoria $clienteCategoria): bool
    {
        return $user->can('pos.vender');
    }
}
