<?php

namespace App\Policies;

use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class RecipeVersionMaterialPolicy extends BasePolicy
{
    use HandlesAuthorization;


    public $key = 'recipe_version';

    public function viewAny(User $user): bool
    {
        return parent::viewAny($user);
    }

    public function view(User $user, $recipeVersionMaterial): bool
    {
        return parent::view($user, $recipeVersionMaterial);
    }

    public function create(User $user): bool
    {
        return parent::create($user);
    }

    public function update(User $user, $recipeVersionMaterial): bool
    {
        return parent::update($user, $recipeVersionMaterial);
    }

    public function delete(User $user, $recipeVersionMaterial): bool
    {
        return parent::delete($user, $recipeVersionMaterial);
    }

    public function restore(User $user, $recipeVersionMaterial): bool
    {
        return parent::restore($user, $recipeVersionMaterial);
    }

    public function forceDelete(User $user, $recipeVersionMaterial): bool
    {
        return parent::forceDelete($user, $recipeVersionMaterial);
    }
}
