Skip to content

Commit

Permalink
Allow admins to see legislation debates and proposals index
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaCheca committed Oct 28, 2017
1 parent cdbd676 commit 4a0ac88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/legislation/processes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def debate
set_process
@phase = :debate_phase

if @process.debate_phase.started?
if @process.debate_phase.started? || current_user.administrator?
render :debate
else
render :phase_not_open
Expand Down Expand Up @@ -87,7 +87,7 @@ def proposals
set_process
@phase = :proposals_phase

if @process.proposals_phase.started?
if @process.proposals_phase.started? || current_user.administrator?
set_legislation_proposal_votes(@process.proposals)
render :proposals
else
Expand Down

0 comments on commit 4a0ac88

Please sign in to comment.