Bugfix: Filmdetails sehen ohne angemeldet sein
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
@if(!is_null($film->gesehen))
|
||||
<div class="label label-success"><span class="glyphicon glyphicon-check"></span> Gesehen am {{ \Carbon\Carbon::parse($film->gesehen)->format('d.m.Y') }}</div>
|
||||
@else
|
||||
<div class="label label-danger" <?php if(Auth::user()->admin) { echo "id='gesehen'"; } ?> style="cursor: pointer;"><span class="glyphicon glyphicon-unchecked"></span> Nicht gesehen</div>
|
||||
<div class="label label-danger" <?php if(!is_null(Auth::user()) && Auth::user()->admin) { echo "id='gesehen'"; } ?> style="cursor: pointer;"><span class="glyphicon glyphicon-unchecked"></span> Nicht gesehen</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
@@ -204,4 +204,4 @@
|
||||
|
||||
@section('title')
|
||||
{{ $film->name }} ~
|
||||
@stop
|
||||
@stop
|
||||
|
Reference in New Issue
Block a user