Skip to content

Commit

Permalink
Allow admins to access Legislation::Proposal #show and Legislation:…
Browse files Browse the repository at this point in the history
…:Process `#proposals`
  • Loading branch information
MariaCheca committed Oct 28, 2017
1 parent e2fdd2b commit 01ce8c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/abilities/administrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def initialize(user)
cannot :restore, Proposal, hidden_at: nil

can :create, Legislation::Proposal
can :show, Legislation::Proposal
can :proposals, ::Legislation::Process

can :restore, Legislation::Proposal
cannot :restore, Legislation::Proposal, hidden_at: nil

Expand Down

0 comments on commit 01ce8c9

Please sign in to comment.