Put edition in status route

This commit is contained in:
Girish Ramakrishnan
2018-08-28 21:43:25 -07:00
parent 22cdd3f55e
commit 976cf1740e
2 changed files with 2 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ function auditSource(req) {
return { ip: ip, username: req.user ? req.user.username : null, userId: req.user ? req.user.id : null };
}
// TODO: move this to model code
function addSpacesSuffix(location, user) {
if (user.admin || !config.isSpacesEnabled()) return location;