This commit is contained in:
mchev
2026-03-21 18:59:53 +01:00
parent 186ab35fd4
commit c901114fc0
232 changed files with 685 additions and 403 deletions

View File

@@ -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
{