Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't check finished consultations #3482

Closed
mrcasals opened this issue May 24, 2018 · 1 comment
Closed

Can't check finished consultations #3482

mrcasals opened this issue May 24, 2018 · 1 comment
Labels
type: bug Issues that describe a bug

Comments

@mrcasals
Copy link
Contributor

Describe the bug
Can't check the finished consultations due to a bug on the permissions system.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the consultations list
  2. Click on "See previous consultations"
  3. Get the error

Expected behavior
No error should be raised.

Screenshots
None.

Stacktrace

NoMethodError (undefined method `published?' for nil:NilClass):

/Users/marc/code/decidim/decidim-consultations/app/permissions/decidim/consultations/permissions.rb:36:in `allowed_public_anonymous_action?'
/Users/marc/code/decidim/decidim-consultations/app/permissions/decidim/consultations/permissions.rb:7:in `permissions'
/Users/marc/code/decidim/decidim-core/app/controllers/concerns/decidim/needs_permission.rb:55:in `block in allowed_to?'
/Users/marc/code/decidim/decidim-core/app/controllers/concerns/decidim/needs_permission.rb:50:in `each'
/Users/marc/code/decidim/decidim-core/app/controllers/concerns/decidim/needs_permission.rb:50:in `inject'
/Users/marc/code/decidim/decidim-core/app/controllers/concerns/decidim/needs_permission.rb:50:in `allowed_to?'
/Users/marc/code/decidim/decidim-core/app/controllers/concerns/decidim/needs_permission.rb:44:in `enforce_permission_to'
/Users/marc/code/decidim/decidim-consultations/app/controllers/decidim/consultations/consultations_controller.rb:34:in `finished'

Extra data (please complete the following information):

  • Decidim Version: master
  • Decidim installation: Development app

Additional context
None

@oriolgual oriolgual added type: bug Issues that describe a bug space: consultations labels May 29, 2018
@mrcasals
Copy link
Contributor Author

mrcasals commented Jun 4, 2018

This was closed by #3524.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Issues that describe a bug
Projects
None yet
Development

No branches or pull requests

2 participants