Blog permissions

v0.0.3

The blog splits its admin access into two areas, editorial and comments, and asks for each on two surfaces, the dashboard and the admin API. A third name on each surface lets an account publish posts. Setting the blog up creates the eight names below. This page lists them, what each opens, and which fields are limited to an area. For how names and wildcards work in general, see How permissions work.

Permission names

NameSurfaceDescription
admin:dashboard:blog:*DashboardThe whole blog on the dashboard: posts and comments.
admin:dashboard:blog:postDashboardThe editorial side of the blog: posts, collections, tags, bloggers and teams, with their views, ratings, bookmarks and follows. Holders are told when a post is published.
admin:dashboard:blog:publishDashboardPublish and schedule posts even with a blogger profile that cannot publish directly.
admin:dashboard:blog:commentDashboardComment moderation: comments and comment votes.
admin:api:blog:*Admin JSON:APIThe whole blog over the admin JSON:API.
admin:api:blog:postAdmin JSON:APIPosts, collections, tags, bloggers and teams over the admin JSON:API.
admin:api:blog:publishAdmin JSON:APIPublish and schedule posts over the admin JSON:API even with a blogger profile that cannot publish directly.
admin:api:blog:commentAdmin JSON:APIComments over the admin JSON:API.

A name counts only on its own surface. A dashboard name never opens an API route, and an API name never opens a screen.

Names that also cover the blog

WildcardCovers
admin:dashboard:blog:*Both dashboard areas of the blog.
admin:dashboard:*Every dashboard area, including both of the blog.
admin:api:blog:*, admin:api:*Both API areas of the blog.
admin:*Both surfaces.
*Everything, on the account's own site.

What each area opens

Screen or recordDashboard nameAPI name
Blog menu entry and the Blog dashboardadmin:dashboard:blog:post or admin:dashboard:blog:commentNot applicable.
Posts, Collections, Tags, Bloggers, Teams, Analyticsadmin:dashboard:blog:postadmin:api:blog:post
Comments and comment votesadmin:dashboard:blog:commentadmin:api:blog:comment
Daily post views, ratings and bookmarks, and team follows, when read for administrationadmin:dashboard:blog:postadmin:api:blog:post

A holder of the comment area alone cannot open the post screens, and a holder of the post area alone cannot open the Comments screen. On the Blog dashboard, a card, figure or link whose area the account does not hold is not drawn.

Fields limited to an area

FieldRecordNeeds
comment_countPostPost area
version_count, latest_version, recent_versionsPost, collection, tag, blogger, teamPost area
can_publish_directly, author_emailBloggerPost area
sender_data, guest_emailCommentComment area

The count approved_comment_count is public. comment_count counts every status, so it is limited to the post area.

The publish name

A blogger whose profile on the post's site does not have Can Publish Directly cannot publish or schedule a post. The publish name lifts that check for an account that holds it. A wildcard that covers the name, such as admin:dashboard:blog:*, does the same.

  • The name opens no screen. An account still needs the post area to reach the Posts screen.
  • A master, an editor with no blogger profile on the site, and the job that publishes scheduled posts are never blocked.
  • A plugin on blog:post:can_publish may change the answer. See Blog plugin events.

Names for setting the blog up

Setting the blog up, repairing it and updating its components needs all four of these names, or a wildcard that covers them.

  • admin:dashboard:runtime:component
  • admin:dashboard:runtime:stylesheet
  • admin:dashboard:runtime:page
  • admin:dashboard:runtime:site

Sites

  • A master, which is an account with no site, reads and writes the blog rows of every site.
  • An account that belongs to a site reads and writes the rows of its own site only, whatever name it holds.

Other names that matter

  • Any name in the permission catalogue can go in the Permissions field of a post, collection or tag, except one that starts with admin:api:, which opens for nobody. Holding one of the others opens that record. See How blog locks work.
  • Changing the permissions attached to a team needs admin:dashboard:permission or admin:api:permission besides the post area. Team members do not inherit them.
  • Readers do not need an admin name to comment, rate, bookmark, vote or follow. They need to be signed in.