Skip to content
Available for new work
Pages in Blog

GuidePremium

Roles and permissions in CoullWorks Blog for Magento 2

The CoullWorks Blog ACL resources, how to build a restricted role, the publish permission, visibility, the licence gate and the comment rules.

Updated 17 November 2026Back to the package pageBuy

Access to the blog admin is controlled with Magento's own roles. The module adds one branch of resources, CoullWorks Blog, under Content, and checks it on every screen, button and route. This page lists the resources, shows how to build a restricted role, and explains the rules that decide who can see or do what.

The CoullWorks Blog resources#

The Role Resources tree with the CoullWorks Blog branch open: Posts with Publish and Disable Posts beneath it, then Categories, Tags, Authors, Comments, AI Writer, AI Research History, AI Queue, Import and Blog Configuration, all unticked

The CoullWorks Blog branch of the Role Resources tree, all unticked.

  • Where: System, Permissions, User Roles, open a role, then Role Resources. Choose Custom under Resource Access, then find Content, CoullWorks Blog.
  • Default: a new role has nothing ticked. Administrators with the All resource access see everything.
ResourceIDWhat it gates
CoullWorks BlogCoullWorks_Blog::blogThe parent of every blog resource. It is also the CoullWorks Blog heading in the Content menu.
PostsCoullWorks_Blog::postsThe Posts list, the post form, bulk actions on posts (except publish and disable), duplicate, preview, revisions and the matching admin REST routes.
Publish and Disable PostsCoullWorks_Blog::posts_publishA child of Posts. Needed to move a post to Published, Scheduled or Disabled, and for the bulk Publish and Disable actions. See the publish permission.
CategoriesCoullWorks_Blog::categoriesThe category tree and form, including drag and drop moves.
TagsCoullWorks_Blog::tagsThe Tags list and form.
AuthorsCoullWorks_Blog::authorsThe Authors list and form.
CommentsCoullWorks_Blog::commentsThe Comments list and form, and the moderation actions.
AI WriterCoullWorks_Blog::ai_wizardThe AI writer and the Refresh with AI button on a post.
AI Research HistoryCoullWorks_Blog::ai_historyThe research history list.
AI QueueCoullWorks_Blog::ai_queueThe AI queue.
ImportCoullWorks_Blog::importThe import screens and job reports.
Blog ConfigurationCoullWorks_Blog::configStores, Configuration, CoullWorks, Blog.

Every admin route and its resource is listed in the admin routes reference.

Build a restricted role#

The Role Resources tree for a Blog contributor role with Posts, Categories, Tags and Comments ticked and Publish and Disable Posts, Authors, the AI resources, Import and Blog Configuration unticked

The Blog contributor role used in the demo: Posts, Categories, Tags and Comments ticked, nothing else.

This example makes a contributor who can write and save drafts but cannot publish.

  1. Open System, Permissions, User Roles and choose Add New Role.
  2. On Role Info, give the role a name such as "Blog contributor" and confirm with your own admin sign-in details where the form asks.
  3. Open Role Resources, set Resource Access to Custom and tick Posts, Categories, Tags and Comments under Content, CoullWorks Blog. Leave Publish and Disable Posts unticked.
  4. Open Role Users and tick the admin users who should have the role, then Save Role.
  5. The users sign out and in again. Their Content menu now lists only the entries they have (see below).

What a restricted role sees#

The Content menu open for the Blog contributor role: under CoullWorks Blog only Posts, Categories, Tags and Comments are listed

The Content menu for the contributor role: Posts, Categories, Tags and Comments only.

The Content menu shows only the blog entries the role has: here Posts, Categories, Tags and Comments. Authors, AI Writer, AI Research History, AI Queue and Import are not listed.

If a user opens a screen they do not have by typing its address, Magento answers with its standard page:

Magento admin page reading Sorry, you need permissions to view this content, with Next steps, for a user opening the Import screen without the Import resource

A user without the Import resource who opens the Import address gets Magento's standard permission page.

This is Magento's own page, shown for any admin screen the role cannot open. The same applies to the bulk Publish and Disable actions for a role without the publish permission.

Publish permission#

A plain white page with the single line Sorry, you need permissions to publish posts.

What the contributor role sees when saving a post as Published: the post form again, with the red message "Sorry, you need permissions to publish posts." above it.

The rule. Moving a post to Published, Scheduled or Disabled needs CoullWorks_Blog::posts_publish. Setting a post to Draft, and changing anything else on it, needs only Posts. The rule applies to the post form, the bulk Publish and Disable actions and the admin REST API (admin tokens included). Saving a post without changing its status is never blocked.

What happens without it. Nothing is saved. On the post form you are returned to the form with the red message "Sorry, you need permissions to publish posts.", and what you typed is kept, so you can set Status back to Draft and save again.

To let someone publish: open their role, tick Publish and Disable Posts under Posts, save the role and have them sign in again.

Visibility#

The Visibility section of the post form with Store Views, Customer Groups, Close Comments and Show AI Disclosure

The Visibility section of the post form. Categories have the same two fields; tags have Store Views.

These rules are about readers, not admin users, and they are set in the Visibility section of the post, category and tag forms.

  • A post, category or tag is visible only in the Store Views you select.
  • Posts and categories can also be limited to Customer Groups. Leave the groups empty to show the item to every group.
  • An item that is not visible returns a 404 and drops out of listings, search, the sitemap, RSS, GraphQL and REST.
  • Drafts, scheduled posts before Publish At and disabled posts (and any post after its Disable At) are never shown to readers.

Licence gate#

The admin Content page with a red message reading This domain isn't licensed for CoullWorks Blog, and a system message that the blog is switched off, with links to your CoullWorks account and the Licence configuration group

The locked page. In the demo, the French store view was given an unlicensed public domain name to show it.

The module is licensed per domain: each store view domain (its secure and unsecure base URLs) must be licensed, one production domain and one staging domain per licence. Entering the key is covered in Install and Configure.

Domains that cannot be public are exempt: localhost, 127.0.0.1, ::1, private addresses, and names ending .test, .local, .localhost, .internal, .example, .invalid, .ddev.site, .lndo.site and .docker. A .dev name is not exempt.

On an unlicensed domain:

  • Blog pages return 404 and the blog leaves the sitemap, RSS, search and widgets.
  • Blog admin screens show the locked page above, which names the domain. Stores, Configuration stays open so the key can be added.
  • GraphQL answers an authorisation error and the REST API answers 401 with "This domain isn't licensed for CoullWorks Blog."
  • If the licensing server cannot be reached, the last valid answer is kept for 7 days and the admin shows a warning.

Comment rules#

A storefront comments section showing two comments and the line Log in to comment. in place of the form

With Allow Guests to Comment set to No, a guest sees "Log in to comment." instead of the form.

These rules decide who can post a comment. Every limit is a field in Stores, Configuration, CoullWorks, Blog, Comments and can be set per store view.

RuleSettingDefault
Guests can comment only when this is Yes. Otherwise they see "Log in to comment."Allow Guests to CommentYes
Logged-in customers skip moderation when this is Yes.Approve Logged-in Customers AutomaticallyNo
Comments close after this many days.Close Comments After (days)0
A post can override the closing rule.Close Comments, on the postUse default
A form sent faster than this is refused.Minimum Time to Fill the Form (seconds)3
Gap between comments from one visitor.Seconds Between Comments From One Visitor30
Most comments one visitor can post in an hour.Comments Per Hour From One Visitor10
Most links in one comment.Most Links in One Comment2
Longest comment.Longest Comment (characters)2000
Moderator email on new comments.Email the Moderator About New CommentsYes

The form also carries a hidden honeypot field, and a reCAPTCHA answer is required when you switch on Enable for Blog Comments in Magento's storefront reCAPTCHA settings (Stores, Configuration, Security, Google reCAPTCHA Storefront). Replies are threaded. When a customer's account is deleted, their comments are anonymised.

Moderation itself is in Comments.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.