bug: new candidate view is using correct policy
This commit is contained in:
parent
35cbe68f00
commit
2fcfb611e6
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user