2019-10-30 03:41:18 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Policies;
|
|
|
|
|
|
|
|
use App\Models\TaxRate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class TaxRatePolicy
|
|
|
|
* @package App\Policies
|
|
|
|
*/
|
|
|
|
class TaxRatePolicy extends EntityPolicy
|
|
|
|
{
|
|
|
|
|
2019-11-12 12:36:24 +01:00
|
|
|
public function create(User $user) : bool
|
|
|
|
{
|
2019-10-30 03:41:18 +01:00
|
|
|
|
2019-11-12 12:36:24 +01:00
|
|
|
return $user->isAdmin();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-10-30 03:41:18 +01:00
|
|
|
}
|