Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check ‘manage publish state’ permission in publish actions #7168

Merged

Conversation

arthurperton
Copy link
Contributor

Fixes #6911.

@what-the-diff
Copy link

what-the-diff bot commented Dec 6, 2022

  • The PublishActions component now has a new prop called canManagePublishState.
  • If the user does not have permission to manage publish state, then they will only be able to create revisions and cannot unpublish or publish entries/terms directly from the sidebar (they must use bulk actions).
  • This change also affects how terms are published in collections with multiple locales: if you do not have permission to manage publish state for one locale but do for another, it is no longer possible to select "publish" as an action when publishing terms across all locales because that would result in some of those terms being unpublished instead of published due to lack of permissions on certain locales. Instead, selecting "publish" will automatically switch your selection over into creating a revision so that nothing gets unpublished by accident without realizing it first!

@mmodler
Copy link
Contributor

mmodler commented Jan 17, 2023

Just stumbled upon this issue again, any chance to see a merge/release soon?

@jasonvarga jasonvarga merged commit f5791fe into statamic:3.3 Jan 18, 2023
@arthurperton arthurperton deleted the issue/6911-revisions-publish-permission branch January 18, 2023 21:54
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.

Entry revisions publish button visible when user doesn't have permission to publish
3 participants