voodoorai2000
d0b8fef6b3
Delete spending proposals
2019-05-31 18:22:59 +02:00
voodoorai2000
24dde9c35e
Delete valuation
2019-05-31 15:43:06 +02:00
Javi Martín
4f4dc2c2af
Add show results and stats form to budgets
2019-05-22 11:50:03 +02:00
Javi Martín
66ecb2835b
Show only available budget stats phases
...
This way we can show statistics for the supports phase before the vote
phase is over.
2019-05-21 13:50:18 +02:00
María Checa
c2457e36a5
Add budget stats permissions for normal users and admins
2019-05-16 22:01:42 +02:00
Bertocq
e0e02b47c0
Add Budgets Stats Controller, route and ability on reviewing ballots and finished budget
2019-05-16 22:01:42 +02:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Julian Herrero
3ba961a2d7
Use double quotes in models
2019-03-14 17:25:43 +01:00
Julian Herrero
54e59a8a58
LegacyLegislation migration cleanup
...
These legacy models are not used anymore.
2019-02-06 17:07:38 +01:00
Julian Herrero
8f112cf37e
Allow admins delete poll answer documents
2019-01-24 19:19:04 +01:00
Javi Martín
b95ca9df8a
Add milestones to legislation process view
2018-12-11 20:18:53 +01:00
Angel Perez
3e6cbc9505
Add basic frontend for budget executions list
2018-11-05 18:04:38 +01:00
decabeza
546105d989
Merge branch 'master' into dashboard-master
2018-10-19 01:48:37 +02:00
decabeza
4db54092e6
Removes unrelated dashboard changes
2018-10-18 01:26:07 +02:00
María Checa
6d5e1a075e
Allow admins to access Legislation::Proposal #show and Legislation::Process #proposals
2018-10-03 16:01:18 +02:00
Juan Salvador Pérez García
f875ded0be
Bugfixing and enhancements
...
* Fixed common ability: Retired draft proposal can't be published.
* Fixed proposal dashboard view: progress graph is not available for
draft proposals.
2018-09-13 18:22:59 +02:00
Javi Martín
471061f475
Allow only admins to attach CKEditor images
...
Right now allowing regular users to attach images would make us
vulnerable to CSRF attacks.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
d574657b77
Fixes for the review made by @javierm
...
this commit will be merged with the others when the chages
are accepted
2018-09-12 12:35:28 +02:00
Raúl Fuentes
8e68f4bbd0
Update abilities for ckeditor4 images
...
Add the image controller to use the obsolete load_and_authorize_resource
and authorize_resource methods in the gem
2018-09-12 12:35:28 +02:00
Juan Salvador Pérez García
6cc1ddb9af
Fixes #231
...
Implements a poster feature for the proposals dashboard
2018-07-31 12:50:25 +02:00
Alberto
fb19aafee7
Merge pull request #2778 from wairbut-m2c/backport/investments-moderation
...
Allow budget investments to be moderated
2018-07-27 12:34:17 +02:00
María Checa
2dd5fe22a8
Removes permissions for admins to access unfinished budget results
2018-07-26 11:07:19 +02:00
Juan Salvador Pérez García
8876b285ce
Fixes #229
...
Adds email feature for proposals dashboard
2018-07-25 13:28:44 +02:00
Juan Salvador Pérez García
e5f9cf6710
Fixed #239
...
Proposals dashboard refactored to dashboard.
Added missing specs for the dashboard.
2018-07-24 15:52:43 +02:00
Angel Perez
bcb0b9fbfa
Enable moderation abilities for Budget::Investment model
2018-07-20 18:03:11 -04:00
Juan Salvador Pérez García
f439fc7371
Fixes #218
...
Added check in poll card that allows setting the value of
results_enabled flag.
Access to stats/results now is controlled with abilities.
Polls related to proposals will be accessible to the proposal author
like they were administrators.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
3c3f60dfcc
Implements #173
...
Public view for suggested actions as well as resources has been
completelly redesigned.
Private side for this feature has been adapted as well in order to meet
the requirements.
2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
2ce9f95283
Polls in the dashboard
...
A reduced version of polls has been added to the dashboard
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
706fdae6d5
%i arrays of symbols
...
%i arrays of symbols have been replaced by standard arrays of symbols in
order to keep the consistency.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
33b3431c70
Implements #150
...
Adds an entry inside moderation section that allows moderators to check
pending tasks and mark them as solved.
2018-07-17 17:52:47 +02:00
Juan Salvador Pérez García
1464bddfa8
Fixes #134
...
Adds an administration interface for the proposal dashboard actions.
2018-07-17 17:48:46 +02:00
Juan Salvador Pérez García
212c088d35
Implements #144
...
Creates the basic layout for the dashboard
2018-07-17 17:47:40 +02:00
Juan Salvador Pérez García
77dd60427d
Implements story #136
...
Adds draft state for proposals
2018-07-17 17:46:54 +02:00
Angel Perez
31c16406c0
Move disable recommendations permissions to Abilities::Common model
2018-07-15 21:28:58 -04:00
Angel Perez
463c753880
Recommendations are automatically disabled if dismissed by user
2018-07-15 21:28:58 -04:00
iagirre
21b1d00205
Add backend for the moderators
...
Add new routes for the proposal notifications edition and
abilities to let moderators edit it (mark as ignored, hide, etc.).
The notifications are not flaggable because they doesn't work like that,
but in a similar way. The moderator/administrator is in charge of hidding
them through the UI, so the normal users don't flag it as inappropriate.
New controller Moderation::ProposalNotification to manage the moderators
work.
2018-07-02 18:17:45 +02:00
rgarcia
7386a39f2d
Fix specs
2018-04-04 13:21:21 +02:00
rgarcia
00c965b715
Clean up
2018-04-04 13:19:01 +02:00
rgarcia
7a01745188
Add valuation permissions to groups
2018-04-03 20:58:35 +02:00
rgarcia
1dbbe331c9
Assign valuators to groups
2018-04-03 20:55:44 +02:00
María Checa
4713d37346
Add budget/investments#json_data method permissions
2018-03-27 15:26:48 +02:00
Bertocq
1ef2789640
Trim valuator investment valuation ability scope
...
Valuators shouldn't be able to valuate an investment which valuation has
already been finished (only admins can)
2018-03-06 20:18:05 +01:00
María Checa
f1fbe7ff29
Modified administrator abilities for newsletters
2018-02-14 16:05:31 +01:00
Bertocq
26cf91c61a
Create valuation comments creation ability
...
Why:
Only admins or valuators (for those investments they've assigned) can
create internal valuation comments on them.
How:
* Creating a new `comment_valuation` ability for admins and valuators in
the same manner the `valuate` ability works.
* Adding a validation at Comment model for those with `valuation` flag
active that checks if the author can make a valuation comment on the
commentable, as well as the respective active record error messages.
This will prevent comments from being created at a controller level as
well.
* Improving comment factory trait `valuation` to have an associated
investment, author that is a valuator and setting the valuator on the
valuators list of the investment
2018-01-31 02:03:03 +01:00
Bertocq
6dcd01366c
Preven admins from destroying others images&docs
2018-01-24 17:07:13 +01:00
Angel Perez
db86cc5216
Enable 'destroy' action for Valuator on controller
2017-11-17 13:12:26 -04:00
María Checa
b556617a80
Changed permissions to vote Legislation Proposals and Answers
2017-10-25 16:43:25 +02:00
decabeza
f0cfe50de4
Merge branch 'master' into 1856-legislation_processes_proposals_phase
2017-10-25 11:52:31 +02:00
rgarcia
ca63e4998f
adds permissions for poll's results and stats
2017-10-23 21:34:13 +02:00
María Checa
84f67db26d
Added restrictions to access Poll results and stats
2017-10-23 14:17:25 +02:00