Skip to content

Commit

Permalink
corrigindo conteudo da tela de administracao
Browse files Browse the repository at this point in the history
  • Loading branch information
Luizhtanaka committed Sep 14, 2023
1 parent 3be88a4 commit 1ea744a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ public function boot(): void
Gate::define('access', function(User $user){
return $user->access_level == 'admin';
});

Gate::define('access_parceiro', function(User $user){
return $user->access_level == 'user';
});
}
}
2 changes: 1 addition & 1 deletion resources/views/site/layout/lista-leads.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Link de Divulgação
</div>
<div>
<a class="btn btn-primary h5 mb-0 font-weight-bold text-white-800" href="{{ route('site.home') }}">{{ route('site.home') }}?resource={{$user->codigo}}</a>
<a class="btn btn-primary h5 mb-0 font-weight-bold text-white-800" href="{{ route('site.home') }}?resource={{$user->codigo}}">{{ route('site.home') }}?resource={{$user->codigo}}</a>
</div>
</div>
<div class="col-auto">
Expand Down
6 changes: 3 additions & 3 deletions resources/views/site/layout/master-dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@

<!-- Earnings (Monthly) Card Example -->


@include('site.layout.lista-leads')

@can('access_parceiro')
@include('site.layout.lista-leads')
@endcan
<!-- Content Row -->
<!-- Controle de acesso - admin -->
@can('access')
Expand Down

0 comments on commit 1ea744a

Please sign in to comment.