Polls in the dashboard

A reduced version of polls has been added to the dashboard
This commit is contained in:
Juan Salvador Pérez García
2018-06-26 08:05:38 +02:00
parent bafdd697b8
commit 2ce9f95283
24 changed files with 463 additions and 37 deletions

View File

@@ -22,6 +22,9 @@ module Abilities
can :dashboard, Proposal do |proposal|
proposal.author.id == user.id
end
can :manage_polls, Proposal do |proposal|
proposal.author.id == user.id
end
can [:retire_form, :retire], Proposal, author_id: user.id