osb/app/Models/Policies/CostPolicy.php
2022-06-14 16:55:17 +10:00

17 lines
249 B
PHP

<?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();
}
}