Here's a thought about a different approach to checking if the logged in user is an admin.

See https://github.com/mozilla/MakeAPI/blob/master/server.js#L57-L67.

The webmaker-loginapi module allows for a custom callback on verifyResponse for any custom processing.

Now with the makeapi there's only one page that exists for navigation so we are always able to check if they are an admin. In your case here you would need to check first if we are on `/editor`. `res.req.route.path` would work.

Some food for thought.