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:
decabeza
2022-10-25 15:25:57 +02:00
committed by Javi Martín
parent 2e9c4de061
commit 1ff2144830
3 changed files with 2 additions and 5 deletions

View File

@@ -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)