osb/app/Models/Policies/CostPolicy.php

17 lines
249 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Models\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\{Cost,User};
class CostPolicy
{
use HandlesAuthorization;
public function view(User $uo,Cost $co): bool
{
return $uo->isWholesaler();
}
}