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
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
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
2be107f4da
Specs
...
Added specs and fixed some issues found after executing them
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
28e17abe72
Syntax for specs adjusted for consistency reasons
...
is_expected.to has been replaced by should
is_expected.not_to has been replaced by should_not
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
83f78b1940
Fixes #135
...
Adds a table with proposed actions in the dashboard. The user can mark
an action as executed.
2018-07-17 17:51:13 +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
Angel Perez
31c16406c0
Move disable recommendations permissions to Abilities::Common model
2018-07-15 21:28:58 -04:00
Angel Perez
88a5e8b1d2
Spec: Admins/users can destroy only their authored documentables/imageables ( #2375 )
2018-01-26 09:10:58 -04:00
Bertocq
16eae689f9
Enable RSpec/RepeatedExample cop & fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedExample
2018-01-07 18:46:32 +01:00
Bertocq
1441de5107
Enable RSpec/HookArgument cop and fix issues
...
To be consistent about before/after arguments, as `:each` or `:example`
are same and default scopes, best not to send an argument in those
scenarios.
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument
2018-01-07 02:07:19 +01:00
Bertocq
2253155a51
Enables RSpec/EmptyLineAfterSubject & fixes all issues
...
Read more about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterSubject
2018-01-07 00:50:50 +01:00
Bertocq
fa017b664f
Enables RSpec/EmptyLineAfterFinalLet cop & fixes all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterFinalLet
2018-01-07 00:49:37 +01:00
Bertocq
6ec6f64675
Enable RSpec/DescribeClass rubocop rspec cop & fix issues
...
Manually fixes all issues & "stashed" false positives at .rubocop_todo.yml
Read about the cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass
2018-01-07 00:20:55 +01:00
Senén Rodero Rodríguez
2993ef8707
Remove documents single uploads
2017-09-27 11:04:56 +02:00
Senén Rodero Rodríguez
eef8ad1b73
Remove images single uploads
2017-09-27 10:41:48 +02:00
Senén Rodero Rodríguez
ce29185b76
Fix documentable on admin poll questions. Adapt nested documentable shared specs to admin fetaure specs and include at admin poll questions specs.
2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
88a7a29d27
Remove new_nested action from documents controller. Use cocoon gem to manage new nested fields creation on documents.
2017-09-26 13:57:13 +02:00
Senén Rodero Rodríguez
d1d2a31876
Remove permissions of obsolete actions. Add missing image managment abilities to common and administrator specs.
2017-09-26 13:55:03 +02:00
Senén Rodero Rodríguez
4469aa9b32
Allow to remove budget investment image from edit image page to authors and administrators.
2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
acc79cbe31
Add edit_image and update_image action to budget/investments controller.
2017-09-26 13:53:42 +02:00
Senén Rodero Rodríguez
0fbffdc73e
Fix abilities definition and related specs
2017-08-25 18:34:53 +02:00
Senén Rodero Rodríguez
c92827e89e
Add abilities to documentable authors and admins to create and destroy documents.
2017-08-25 17:27:37 +02:00
Bertocq
c9bc028524
Remove all unnecesary extra spacing and Layout/ExtraSpacing list from rubocop file
2017-06-28 14:12:51 +02:00
Bertocq
80bcf38dc5
Fix all Layout/TrailingWhitespace rubocop issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Alberto
6bbcc71ecb
Merge branch 'master' into polls
2017-04-06 14:16:49 +02:00
kikito
24920e73f6
Adds permissions for authors to destroy budget investments
2017-03-06 13:42:52 +01:00
kikito
15b531f068
Fixes failing specs
2017-01-24 18:10:41 +01:00
Juanjo Bazán
113f9b32d7
Merge branch 'master' into polls
2017-01-19 16:51:19 +01:00
Juanjo Bazán
5ec12e4b5b
Merge branch 'master' into redux-polling
2016-12-27 18:22:06 +01:00
kikito
2a2179d0f3
Merge branch 'master' into budget
2016-11-28 11:41:49 +01:00
kikito
f0b8cfd4a2
Time.now -> Time.current
2016-11-23 19:19:19 +01:00
rgarcia
28e0c825f1
improves legibility of common abilities' spec
2016-11-18 20:10:58 +01:00
kikito
d39f19abb8
Defines Poll::Question#answerable_by?(user) and uses it in abilities
2016-11-07 16:28:39 +01:00
kikito
f821d7beb7
Implements abilities for poll & poll_question
2016-11-07 10:37:22 +01:00
Juanjo Bazán
3964988bb1
fixes specs
...
updates investment to have group_id & budget_id
2016-09-05 13:50:25 +02:00
rgarcia
f24a8887bb
fixes conflicts with master
2016-07-19 14:49:27 +02:00
Juanjo Bazán
b5a6828e41
adds Budget::Group model to group headings
...
many refactors through budget related models
2016-06-09 18:00:06 +02:00
rgarcia
fea3aef5bb
updates permissions for direct messages
2016-06-09 17:35:19 +02:00
kikito
2a82e9e33a
Redoes the common balloting permissions
2016-05-30 14:01:47 +02:00
kikito
daa8783b02
Adds common Investment abilities
2016-05-30 13:53:30 +02:00
rgarcia
d5453f1733
fixes spec
2016-03-29 17:36:31 +02:00
Juanjo Bazán
142c981cdf
adds ability to level 2 users to delete owned sps
2016-03-14 12:51:58 +01:00
Juanjo Bazán
1ab0b31d4b
only level 2 users can create spending proposals
2016-01-13 13:35:21 +01:00
Juanjo Bazán
2c36ceb10c
adds abilities for SpendingProposals
2016-01-11 12:15:42 +01:00
Juanjo Bazán
6d26901f9f
adds specs for user's page
2015-11-03 20:26:13 +01:00
Juanjo Bazán
c896fc3eef
adds ability for featured_votes of proposals
2015-10-22 11:53:32 +02:00
kikito
82af488ce3
Splits ability.rb and specs into several smaller files
...
I'm doing this in preparation for the "Manager" ability, which will
require even more refactors of the abilities (for example,
manager can not modify their own account)
2015-09-28 13:51:42 +02:00