Skip to content

[6.x] Fix entry publish permission#13827

Merged
jasonvarga merged 5 commits intostatamic:6.xfrom
PatrickJunod:6.x
Feb 6, 2026
Merged

[6.x] Fix entry publish permission#13827
jasonvarga merged 5 commits intostatamic:6.xfrom
PatrickJunod:6.x

Conversation

@PatrickJunod
Copy link
Contributor

This PR fixes an issue where an author can publish collection entries without having the Manage publish state permission set. It will also take care of the Manage publish state of other authors' entries permission.

It will also show the toggle switch as grayed out and with a cursor-not-allowed CSS.

Can possibly be taken as a breaking change as the previous behaviour has been changed (user without manage publish state can no longer publish new content).

Let me know if I forgot something.

Changes (Before/after):

WITHOUT MANAGE PUBLISH STATE PERMISSION

REVISIONS DISABLED

Before: User can enable/disabled published state
After: User can not enable/disable published state, it will always be "unpublished"
Edge case: When the "Publish by default" toggle is activated on the collection, the user will still not be able to publish the entry, the permission takes priority over the configuration.

REVISIONS ENABLED

No changes.

WITH MANAGE PUBLISH STATE PERMISSION

REVISIONS DISABLED

No changes.

REVISIONS ENABLED

No changes.

@jasonvarga jasonvarga changed the title [6.x] Disable PublishForm Switch for users without publish permission [6.x] Fix entry publish permission Feb 6, 2026
@jasonvarga jasonvarga merged commit f0ccb78 into statamic:6.x Feb 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants