Compare commits

...

3 Commits
v4.1.4 ... 3.0

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

View File

@@ -1349,3 +1349,7 @@
* GPG verify releases
* 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

View File

@@ -58,7 +58,7 @@ function getApp(req, res, next) {
function getApps(req, res, next) {
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));
allApps = allApps.map(apps.removeRestrictedFields);
@@ -574,4 +574,4 @@ function setOwner(req, res, next) {
next(new HttpSuccess(200, { }));
});
}
}