<?php

namespace App\Policies;

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

class NetworkToolsPolicy
{
    use HandlesAuthorization;

    /**
     * Network araçlarını kullanma izni
     */
    public function use(Admin $admin): bool
    {
        return $admin->hasPermissionTo('use network tools');
    }

    /**
     * Network araçlarını görüntüleme izni
     */
    public function view(Admin $admin): bool
    {
        return $admin->hasPermissionTo('view network tools');
    }
}
