Compare commits

...

3 Commits

Author SHA1 Message Date
Girish Ramakrishnan 51aaa8f304 More changes 2018-08-16 20:14:03 -07:00
Girish Ramakrishnan 0c2e200176 3.0.2 changes 2018-08-16 20:11:58 -07:00
Girish Ramakrishnan 8d7ba5cc26 Fix issue where normal users are shown all apps 2018-08-16 20:10:57 -07:00
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -1349,3 +1349,7 @@
* GPG verify releases * GPG verify releases
* Allow subdomains in location field * Allow subdomains in location field
[3.0.2]
* Fix issue where normal users are shown apps they don't have access to
* Re-configure mail apps when mail is enabled/disabled
+2 -2
View File
@@ -58,7 +58,7 @@ function getApp(req, res, next) {
function getApps(req, res, next) { function getApps(req, res, next) {
assert.strictEqual(typeof req.user, 'object'); assert.strictEqual(typeof req.user, 'object');
apps.getAll(function (error, allApps) { apps.getAllByUser(req.user, function (error, allApps) {
if (error) return next(new HttpError(500, error)); if (error) return next(new HttpError(500, error));
allApps = allApps.map(apps.removeRestrictedFields); allApps = allApps.map(apps.removeRestrictedFields);
@@ -574,4 +574,4 @@ function setOwner(req, res, next) {
next(new HttpSuccess(200, { })); next(new HttpSuccess(200, { }));
}); });
} }