adds menu item to main bar for poll officers

This commit is contained in:
Juanjo Bazán
2016-12-27 18:48:36 +01:00
parent 3fc4896529
commit 402d709930
2 changed files with 6 additions and 2 deletions

View File

@@ -114,6 +114,10 @@ class User < ActiveRecord::Base
manager.present?
end
def poll_officer?
poll_officer.present?
end
def organization?
organization.present?
end

View File

@@ -23,9 +23,9 @@
</li>
<% end %>
<%# if current_user.administrator? || current_user.officer? %>
<% if current_user.administrator? || current_user.poll_officer? %>
<li>
<%= link_to t("layouts.header.officing"), officing_root_path %>
</li>
<%# end %>
<% end %>
<% end %>