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

Error when adding new entry from ElementSelectorModal #3069

Closed
janhenckens opened this issue Jul 4, 2018 · 1 comment
Closed

Error when adding new entry from ElementSelectorModal #3069

janhenckens opened this issue Jul 4, 2018 · 1 comment

Comments

@janhenckens
Copy link
Contributor

janhenckens commented Jul 4, 2018

Description

A user that has create/publish/delete rights on a channel can not add a new entry from the Element select modal. The request errors out on index.php?p=admin/actions/elements/get-editor-html with The user doesn’t have permission to edit this element

From the wording of on the permissions screen, it reads like this should work. If the error is correct, a better solution would be to not show the button (or removed the section in question from the button dropdown).

Steps to reproduce

  1. Create a channel and a single
  2. Create an entries field on the single with the channel enabled in the field
  3. Create a user group that has create/publish/delete rights for the channel. Don't check any of the "Edit other authors’ entries" or "Edit other authors’ drafts" entries.
  4. Log in as a user group the group, open single, click the entries field and try to create a new entry

Additional info

  • Craft version: 3.0.14
  • PHP version: 7.2.1
  • Database driver & version: 5.6.38
  • Plugins & versions: None
@brandonkelly
Copy link
Member

Thanks for reporting!

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

No branches or pull requests

2 participants