Show always poll officer menu to officers
Since the change on commit cbbe188d6 we added a Poll.current.any?
condition to show the officing link on admin menu to officers.
That condition doesn't have much sense since Poll results only can be
added after a poll has ended, and there may be only one active poll.
This commit is contained in:
@@ -102,7 +102,7 @@ describe Layout::AdminLoginItemsComponent do
|
||||
end
|
||||
|
||||
it "shows the officing link to poll officers" do
|
||||
user = create(:poll_officer, polls: [create(:poll)]).user
|
||||
user = create(:poll_officer).user
|
||||
|
||||
render_inline Layout::AdminLoginItemsComponent.new(user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user