return profileLocked in config route

part of #704
This commit is contained in:
Girish Ramakrishnan
2020-07-09 17:18:06 -07:00
parent 3c3f81365b
commit 6ea2aa4a54
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ function getConfig(callback) {
isDemo: settings.isDemo(),
cloudronName: allSettings[settings.CLOUDRON_NAME_KEY],
footer: allSettings[settings.FOOTER_KEY] || constants.FOOTER,
features: appstore.getFeatures()
features: appstore.getFeatures(),
profileLocked: allSettings[settings.DIRECTORY_CONFIG_KEY].lockUserProfiles
});
});
}
+1 -1
View File
@@ -139,7 +139,7 @@ function initializeExpressSync() {
router.post('/api/v1/backups/create', token, authorizeAdmin, routes.backups.startBackup);
router.post('/api/v1/backups/cleanup', token, authorizeAdmin, routes.backups.cleanup);
// config route (for dashboard)
// config route (for dashboard). can return some private configuration unlike status
router.get ('/api/v1/config', token, routes.cloudron.getConfig);
// working off the user behind the provided token