<?php

namespace App\Modules\Inventory\Policies;

use App\Models\User;
use App\Modules\Inventory\Models\Item;

class ItemPolicy
{
    public function viewAny(User $user): bool
    {
        return $user->can('inventory.catalog.view');
    }

    public function view(User $user, Item $item): bool
    {
        return $user->can('inventory.catalog.view', $item);
    }

    public function create(User $user): bool
    {
        return $user->can('inventory.catalog.manage');
    }
}
