topnotch_website/app/Policies/InvoicePolicy.php
2025-01-29 12:30:54 -08:00

17 lines
248 B
PHP

<?php
namespace App\Policies;
use App\Models\User;
class InvoicePolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return auth()->user()->is_admin;
}
}