Skip to content

Commit

Permalink
Fixes "add movie" authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Oct 19, 2014
1 parent 05c7aaa commit 9575f75
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/movies/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
Hate
.clearfix
.col-md-3
.btn-group.btn-group-justified
%a.btn.btn-primary{ href: new_movie_path }
Add movie
- if can? :create, Movie
.btn-group.btn-group-justified
%a.btn.btn-primary{ href: new_movie_path }
Add movie

0 comments on commit 9575f75

Please sign in to comment.