consuldemocracy / consuldemocracy

Consul Democracy - Open Government and E-Participation Web Software
https://consuldemocracy.org
GNU Affero General Public License v3.0
1.44k stars 1.1k forks source link

Avoid 403 error when creating booths for budgets #4813

Closed decabeza closed 1 year ago

decabeza commented 2 years ago

Description

Administrators see a 403 error when try to create a booth for a Participatory Budget and Polls feature is disabled.

Steps to reproduce

  1. Visit https://demo.consulproject.org/admin/settings#tab-participation-processes, and disable "Polls" feature.
  2. Visit edit view of a budget https://demo.consulproject.org/admin/budgets/1, and click on "Create booths" button.
  3. You see the 403 error page (correct) but, I think it's not clear for UX since the administrator is editing a budget, and doesn't need to know that he needs to have the Polls feature enabled to be able to use the booths. 😅
403

403 error page

Notes

I think would be a good idea to disable the button and show a message like:

The feature Polls must be enabled to create booths. You can enable it from the settings configuration page.

Mockup

buudget_booths
javierm commented 1 year ago

Closed via #5104.