Adds AdminFilter for protecting certain routes. Closes #411

This commit is contained in:
James Brooks
2015-01-23 08:31:00 +00:00
committed by Joseph Cohen
parent 86d30b82e1
commit 787ecde0ea
4 changed files with 41 additions and 7 deletions
+2
View File
@@ -8,9 +8,11 @@
<span class="uppercase">
<i class="icon icon ion-android-alert"></i> {{ trans('dashboard.team.team') }}
</span>
@if(Auth::user()->isAdmin)
<a class="btn btn-sm btn-success pull-right" href="{{ route('dashboard.team.add') }}">
{{ trans('dashboard.team.add.title') }}
</a>
@endif
<div class="clearfix"></div>
</div>
<div class="content-wrapper header-fixed">