mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Pint
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Policies;
|
||||
use App\Models\ExchangeRateProvider;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
use Silber\Bouncer\BouncerFacade;
|
||||
|
||||
class ExchangeRateProviderPolicy
|
||||
@@ -14,7 +15,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
@@ -28,7 +29,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function view(User $user, ExchangeRateProvider $exchangeRateProvider): bool
|
||||
{
|
||||
@@ -42,7 +43,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
@@ -56,7 +57,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function update(User $user, ExchangeRateProvider $exchangeRateProvider): bool
|
||||
{
|
||||
@@ -70,7 +71,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function delete(User $user, ExchangeRateProvider $exchangeRateProvider): bool
|
||||
{
|
||||
@@ -84,7 +85,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function restore(User $user, ExchangeRateProvider $exchangeRateProvider): bool
|
||||
{
|
||||
@@ -94,7 +95,7 @@ class ExchangeRateProviderPolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, ExchangeRateProvider $exchangeRateProvider): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user