pundit: convert ip bans to pundit.
This commit is contained in:
@@ -157,6 +157,9 @@
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
<li><%= link_to("Moderation Reports", moderation_reports_path) %></li>
|
||||
<li><%= link_to("IP Addresses", ip_addresses_path) %></li>
|
||||
<% end %>
|
||||
|
||||
<% if policy(IpBan).index? %>
|
||||
<li><%= link_to("IP Bans", ip_bans_path) %></li>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user