pytition / Pytition

Django app for self-hosted privacy-friendly online petitions
https://pytition.org
BSD 3-Clause "New" or "Revised" License
100 stars 28 forks source link

Restrict organization creation : use Django permissions #326

Open fsellaouti opened 1 month ago

fsellaouti commented 1 month ago

Context When RESTRICT_ORG_CREATION is set to True, only superusers are allowed to create new organisations.

Enhancement When RESTRICT_ORG_CREATION is set to True, allow users with permission 'add_organization' to create new organizations. Additionally, do not show 'Add organization' buttons when user is not allowed to.