17 lines
249 B
PHP
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();
|
|
}
|
|
} |