As user 1, or a user who can bypass node access, I would expect to be able to bypass transition states as well.

Can we have some permission that makes it so that super users can always transition from current state to the Published state?

This feature is most important, I think, when creating new content.

Comments

agentrickard created an issue. See original summary.

becw’s picture

+1

Crell’s picture

We discussed this on the UX call today and were generally +1.

Crell’s picture

Status: Active » Postponed (maintainer needs more info)

Hm, clarification: Are we talking about:

1) A "use any transition" permission? This is dead simple but a bit redundant, since the admin role has all transition permissions anyway.

2) A "transition to any state" permission? This may be a bit trickier, especially if we change the UI to use transition names rather than state names. And by simply creating the appropriate transitions, even if no one is given access to them, the admin role would get access to them anyway.

Given that, is this issue not about a permission but rather about including more default transitions, from Draft to Published?

becw’s picture

Status: Postponed (maintainer needs more info) » Active

When we talked about this issue, I think the solution we discussed was to add a default transition from draft -> published.

Crell’s picture

Assigned: Unassigned » Crell

Working...

  • Crell committed 6850c08 on 2651152-draft-pub
    refs #2651152 Include a Draft-Published transition.
    
Crell’s picture

Status: Active » Needs review
StatusFileSize
new596 bytes

Where's Amy's "Easy" button?

becw’s picture

Yep, that's what I was thinking. I'll merge when testbot shows green.

Status: Needs review » Needs work

The last submitted patch, 8: 2651152-draft-pub.patch, failed testing.

The last submitted patch, 8: 2651152-draft-pub.patch, failed testing.

The last submitted patch, 8: 2651152-draft-pub.patch, failed testing.

The last submitted patch, 8: 2651152-draft-pub.patch, failed testing.

The last submitted patch, 8: 2651152-draft-pub.patch, failed testing.

The last submitted patch, 8: 2651152-draft-pub.patch, failed testing.

Crell’s picture

Status: Needs work » Needs review
StatusFileSize
new1.49 KB
new928 bytes

It helps to update the tests, too.

(FYI, I had to rebase the branch but it's been repushed.)

  • Crell committed 046d1ee on 2651152-draft-pub
    refs #2651152 Include a Draft-Published transition.
    

  • becw committed 00a07c3 on 8.x-1.x
    Issue #2651152 by Crell: Allow superusers to Save as published
    
  • Crell committed 046d1ee on 8.x-1.x
    refs #2651152 Include a Draft-Published transition.
    
becw’s picture

Status: Needs review » Fixed

Ok, looks good. I've merged the patch from #16.

There's another open branch related to this issue, 2651152-transition-perm, which adds a "use any transition" permission. Is that something we want to add, too?

Crell’s picture

No, that was a previous stillborn attempt. We can trash it.

becw’s picture

Ok, I cleaned up the branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.