From 9575f759cb6424cb6eef01e947e6a0a48c732f36 Mon Sep 17 00:00:00 2001 From: Julien Letessier Date: Sun, 19 Oct 2014 19:32:37 +0200 Subject: [PATCH] Fixes "add movie" authorization --- app/views/movies/index.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/movies/index.haml b/app/views/movies/index.haml index 923aa3e..455b89a 100644 --- a/app/views/movies/index.haml +++ b/app/views/movies/index.haml @@ -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