When an agency hands a site to a client, the admin is part of the product. Every menu item the client doesn't need is a question for the support inbox, or a tempting button. emDash 1.4 adds a setting that hides built-in admin areas a site doesn't use. It is a welcome change, and it is easy to mistake for something it isn't.

We tested it on this site's own code: what disappears, what still works, and what stops a user who shouldn't be there. The short answer is in the title. Hiding tidies the admin. Roles protect it.

What the setting does

The setting is admin.hiddenNavItems in the site's emDash configuration. It accepts nine built-in areas: the calendar, media, comments, menus, redirects, widgets, sections, bylines and the importer. A site that doesn't use comments, never manages redirects by hand and has no widget areas can drop all three:

js
				
					emdash({	admin: {		hiddenNavItems: ["comments", "redirects", "widgets"],	},});
				
			

Three details matter in practice:

  • It lives in code, not in the admin. A developer changes it and the site is redeployed. A client cannot switch an area back on, and neither can their administrator.
  • It applies to everyone. The setting knows nothing about roles. The site's own administrators lose the menu item too and reach the page by its address.
  • It covers emDash's own areas only. Plugin pages such as a forms inbox cannot be hidden this way. We tried: the build stops with an error that lists the nine names it accepts, which at least means a typo can't slip through unnoticed.

What we tested

We turned the setting on in a local copy of this site, hiding comments, redirects, widgets and the importer, and signed in first as an Administrator and then as an Editor. Nothing changed on the live site.

What we checkedAdministratorEditor
Hidden areas in the sidebarGoneGone
Hidden areas in the command paletteGone; only articles mentioning them matchedSame setting; not checked separately
Redirects page, opened by its addressOpens and works in fullOpens and lists every redirect
Creating a redirectAllowedRefused: insufficient permissions
Hidden areas' data through the APIServedServed where the role may read it
Content types, users, plugins and settingsIn the sidebarNot shown, because of the role; the user list was refused

Two results are worth dwelling on.

The first is the Editor on the hidden redirects page. It opened from its address and showed every redirect, a tab for the log of addresses visitors had requested and not found, and the button for a new redirect. When we sent the request that button makes, the server refused it, because creating redirects needs an Administrator. The page looked available; the permission was not.

The second is what the Editor's sidebar lost without any setting at all. Content types, users, plugins and settings were simply not there, because an Editor's role doesn't allow them, and a direct request for the user list was refused. That is the mechanism doing the real work, and it was there before 1.4.

Roles are the boundary

emDash has five roles, each including everything below it. The server checks the role on every action, whatever the menu shows.

RoleWhat it can doTypical client user
SubscriberRead published content, including members-only contentMembers of a gated site
ContributorWrite drafts and edit their own, without publishingGuest writers, junior staff
AuthorWrite and publish their own contentTrusted regular writers
EditorManage all content, media, menus, taxonomies, bylines, widgets and sectionsThe client's marketing lead
AdminEverything, including the content model, users, plugins, redirects and settingsThe agency, and at most one person at the client

Most of what a client could break lives at the Administrator level: the content model, plugins, users, redirects and site settings. Giving the client's team Editor accounts protects all of it, whatever the menu shows. The hiding setting then removes what an Editor could use but the site doesn't need.

A sensible setup for client sites

  1. Start with roles. Give each person the lowest role that lets them do their job. Keep Administrator accounts with the agency and, if the client insists, one named person.
  2. Hide what the site doesn't use at all. Comments on a site without comments, widgets on a theme without widget areas, the importer after the migration is done. These are areas nobody should miss.
  3. Don't hide something to stop someone using it. If a person shouldn't change redirects, the answer is their role, not the menu. A hidden page is one shared link away.
  4. Write it down. Note what is hidden and why in the handover document, so the next developer, or the client's administrator, knows the page still exists and where to find it.
Before handing over an emDash admin0/5 done

Setting up client admins

  • Running an emDash site yourself. Hide what you never use, if the clutter bothers you. Your own role already decides what you can change.
  • Commissioning a site. Ask your agency which areas they plan to hide and which roles your team will have. If the answer to "how do you stop us breaking X?" is "it isn't in your menu", ask again.
  • Running an agency. Treat hiding as part of the handover polish and roles as part of the security review. Both belong in the launch checklist, and only one of them belongs in the security section.