This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

Show the admin bar when logged out

I’d like to show the admin bar to logged-out users as well to provide a consistent “log in” link. Where would be the best place to control this? I’ve looked at the index.js file in the apostrophe-admin-bar module, but nothing was looking particularly obvious.

If you look in outerLayoutBase.html there’s a nunjucks block {% block apostropheContextMenu %}. The UI there is only shown if there’s a logged-in user. Theoretically removing that conditional would show the context menu to people logged-out, though your mileage may vary.

You can also give them a link to /login.