Skip to content

Commit

Permalink
Only admins can see quick overview for now
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNatoli committed Nov 9, 2016
1 parent 7891a7b commit 9ef1044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/admin/dashboard/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@extends('layouts.admin', ['no_boxes' => true])

@section('content')
@if (Auth::user()->hasRole('admin'))
<section class="content">
<div class="col-xs-12 col-md-6">
<div class="box">
Expand Down Expand Up @@ -62,4 +63,5 @@
</div>

</section>
@endif {{--Admins only--}}
@endsection

0 comments on commit 9ef1044

Please sign in to comment.