feat: Add demo mode with restricted user actions

This commit is contained in:
Maksim Eltyshev
2026-01-14 14:11:21 +01:00
parent 5636c2bb79
commit 1f4f439f4c
9 changed files with 19 additions and 5 deletions
@@ -132,7 +132,7 @@ module.exports = {
throw Errors.USER_NOT_FOUND;
}
if (user.email === sails.config.custom.defaultAdminEmail) {
if (user.email === sails.config.custom.defaultAdminEmail || sails.config.custom.demoMode) {
throw Errors.NOT_ENOUGH_RIGHTS;
}