mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
cc53d08b4d
* Wired up Bulk Archive / Delete / Restore button with reactivity on checkbox actions * Working on POSTing bulk actions * Working on Filtering by status * Add Action Entity * Implement Vuex for state management * Implement Vuex storage & list view bulk actions * Clean up console logs * Configure entity list views server side
26 lines
378 B
PHP
26 lines
378 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\Client;
|
|
use App\Models\User;
|
|
|
|
/**
|
|
* Class ClientPolicy
|
|
* @package App\Policies
|
|
*/
|
|
class ClientPolicy extends EntityPolicy
|
|
{
|
|
/**
|
|
* Checks if the user has create permissions
|
|
*
|
|
* @param User $user
|
|
* @return bool
|
|
*/
|
|
public function create(User $user) : bool
|
|
{
|
|
return $user->hasPermission('create_client');
|
|
}
|
|
|
|
}
|