From 2fcfb611e64df0b2b52da27695a7334d74fd8df1 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Fri, 11 Nov 2016 16:17:20 -0600 Subject: [PATCH] bug: new candidate view is using correct policy --- app/views/admin/candidate/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/candidate/index.html.erb b/app/views/admin/candidate/index.html.erb index 0c29e2e..130c99e 100644 --- a/app/views/admin/candidate/index.html.erb +++ b/app/views/admin/candidate/index.html.erb @@ -4,7 +4,7 @@
<%= link_to(admin_new_candidate_path, { class: 'secondary-btn' }) do %> - <% end if policy(User).create? %> + <% end if policy(Candidate).create? %>