1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00
invoiceninja/app/Policies/TokenPolicy.php
2019-01-30 22:25:07 +11:00

32 lines
493 B
PHP

<?php
namespace App\Policies;
use App\Models\User;
/**
* Class TokenPolicy
* @package App\Policies
*/
class TokenPolicy extends EntityPolicy
{
/**
* @param User $user
* @param $item
* @return bool
*/
public function edit(User $user, $item)
{
return $user->hasPermission('admin');
}
/**
* @param User $user
* @return bool
*/
public function create(User $user)
{
return $user->hasPermission('admin');
}
}