Commit c52253ee authored by Aaron Harder's avatar Aaron Harder

Add global preprocessor to all blacklight/edit routes: fail if we are not in author mode

parent 55218de8
......@@ -13,6 +13,13 @@ module.exports.process = function(data, $, cb){
// templates:routerSettings.templates.blacklight.edit
// }
if($.sling.mode !== "author"){
$.express.res.status(404).end("Page not available");
cb(null, true);
return;
}
var blConfig = global.bl.modules.modelHelpers.blacklight.edit.getBlConfigClient($.express.req);
$.sc=$.sling;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment