Browse Source

Bugfix: Filmdetails sehen ohne angemeldet zu sein

Daniel 10 years ago
parent
commit
521ecc46c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/film.blade.php

+ 1 - 1
app/views/film.blade.php

@@ -106,7 +106,7 @@
   </div>
 </div>
 @endif
-@if(is_null($film->gesehen))
+@if(is_null($film->gesehen) && !is_null(Auth::user()))
 <div class="container" style="text-align: center">
 	<div class="btn-group">
 		<a class="btn btn-lg btn-success <?php echo $uvote[0] && $uvote[1] ? "disabled" : ""; ?>" href="{{ url('vote', array('yes', Auth::user()->id, $film->id)) }}">