bug: new candidate view is using correct policy

This commit is contained in:
Mark Moser 2016-11-11 16:17:20 -06:00
parent 35cbe68f00
commit 2fcfb611e6

View File

@ -4,7 +4,7 @@
<main class="summary_tpl"> <main class="summary_tpl">
<%= link_to(admin_new_candidate_path, { class: 'secondary-btn' }) do %> <%= link_to(admin_new_candidate_path, { class: 'secondary-btn' }) do %>
<button>Create New Candidate</button> <button>Create New Candidate</button>
<% end if policy(User).create? %> <% end if policy(Candidate).create? %>
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>