Hide polls created by users from proposals dashboard on admin poll index

This commit is contained in:
decabeza
2019-05-08 12:48:20 +02:00
parent 087a21b4ca
commit cec1d5e5f0
3 changed files with 13 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
before_action :load_geozones, only: [:new, :create, :edit, :update]
def index
@polls = Poll.not_budget.order(starts_at: :desc)
@polls = Poll.not_budget.created_by_admin.order(starts_at: :desc)
end
def show