adds menu item to main bar for poll officers
This commit is contained in:
@@ -114,6 +114,10 @@ class User < ActiveRecord::Base
|
||||
manager.present?
|
||||
end
|
||||
|
||||
def poll_officer?
|
||||
poll_officer.present?
|
||||
end
|
||||
|
||||
def organization?
|
||||
organization.present?
|
||||
end
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user