There is a scenario where a user has the view to edit a piece of content, but there is no button to save the edited content. Here is one scenario where this can be reproduced:

  1. create user with only the "Authenticated user" role
  2. allow authenticated users to have all permissions to the Article content type
  3. make Article moderatable with all states checked and default status to draft
  4. login as the user you just created
  5. go to create an Article and you will see an interface to edit content, but no save button (only a preview button)

While this isn't a severe scenario, easily remedied by giving transition permissions, it could be a common scenario for sites with many editorial steps.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

josephdpurcell created an issue. See original summary.

Crell’s picture

The straightforward solution would be to modify the entity permission hook we already implement and deny Edit access if the user has no out-going transition permissions. That may have a negative performance impact, though. It also means that the Edit tab would simply not be available for those users, which could be confusing.

Crell’s picture

Status: Needs review » Needs work

The last submitted patch, 3: 2675740-edit-access.patch, failed testing.

The last submitted patch, 3: 2675740-edit-access.patch, failed testing.

The last submitted patch, 3: 2675740-edit-access.patch, failed testing.

Crell’s picture

Status: Needs review » Needs work

The last submitted patch, 7: 2675740-edit-access.patch, failed testing.

The last submitted patch, 7: 2675740-edit-access.patch, failed testing.

The last submitted patch, 7: 2675740-edit-access.patch, failed testing.

  • Crell committed cbcad8b on 8.x-1.x
    Issue #2675740 by Crell: User can edit content but not submit
    
    Merge...
Crell’s picture

Status: Needs review » Fixed

I went ahead and merged this.

Status: Fixed » Closed (fixed)

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