Changeset dd856db in Klonkt for src/routes/admin-settings.js
- Timestamp:
- 06/24/2026 05:23:33 PM (3 months ago)
- Branches:
- main
- Children:
- 48ca5fc
- Parents:
- 34076d7
- File:
-
- 1 edited
-
src/routes/admin-settings.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-settings.js
r34076d7 rdd856db 96 96 97 97 if (typeof req.body.tenancy !== 'undefined') { 98 // Hub mode is a premium feature: only switch to hub if premium is 99 // unlocked (premium layer off = free; on = Patreon required). Staying on 100 // hub is always allowed, so an instance can never get stuck. 101 if (req.body.tenancy === 'hub' && !premiumUnlocked() && getTenancy() !== 'hub') { 102 return res.redirect('/admin/settings?error=' + encodeURIComponent('Hub-modus is een premium-functie — koppel Patreon in Beheer → Instellingen.')); 103 } 104 setTenancy(req.body.tenancy); // valideert naar solo | hub | circle 98 // Hub mode is removed → setTenancy only accepts solo | circle (coerces the rest). 99 setTenancy(req.body.tenancy); 105 100 } 106 101 if (typeof req.body.default_lang !== 'undefined') {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)