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">
|
||||
<%= link_to(admin_new_candidate_path, { class: 'secondary-btn' }) do %>
|
||||
<button>Create New Candidate</button>
|
||||
<% end if policy(User).create? %>
|
||||
<% end if policy(Candidate).create? %>
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user