adzialocha / hoffnung3000

Platform for decentralized, anonymized, self-curated festivals
https://hoffnung3000.de
GNU Affero General Public License v3.0
36 stars 8 forks source link

Antiuni Feature Disable Der Markt [#2]: Conditionally show Der Markt in Navbar and Resources in Create Event View #84

Closed sandreae closed 4 years ago

adzialocha commented 4 years ago

The /api/resources routes where still available even though the isDerMarktEnabled config was set to false. We have to make sure that on both frontend and backend the features get disabled so I've added a new middleware which makes it more convenient to disable whole routes depending on the config setting.