Skip to content

Commit

Permalink
enhancement: merge abe users into core
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Nov 23, 2016
1 parent a0e7dcc commit 092f917
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/server/controllers/editor.js
Expand Up @@ -33,7 +33,9 @@ function add(obj, json, text, util) {
}

obj.key = getDataIdWithNoSlash(obj.key)
obj.status = json.abe_meta.status
if (json != null && json.abe_meta != null) {
obj.status = json.abe_meta.status
}

util.add(obj)

Expand Down
5 changes: 1 addition & 4 deletions src/server/routes/get-list-url.js
Expand Up @@ -30,10 +30,7 @@ var route = function(router, req, res, next) {
var template = Handlebars.compile(html, {noEscape: true})
var tmp = template({
urls: urls,
express: {
req: req,
res: res
},
user: res.user,
config: JSON.stringify(config),
roles: roles
})
Expand Down
5 changes: 1 addition & 4 deletions src/server/routes/users/get/list.js
Expand Up @@ -27,10 +27,7 @@ var route = function route(req, res, next) {
var roles = config.users.roles
var tmp = template({
users: User.getAll(),
express: {
req: req,
res: res
},
user: res.user,
config: JSON.stringify(config),
roles: roles
})
Expand Down

0 comments on commit 092f917

Please sign in to comment.