craftcms / craftcms/cms

User with lower permissions get a bad request when trying to save a draft with errors

Open
#9,885 9 comments 0 reactions 1 assignee View on GitHub

@timkelty is already working on this.

Since Jan 5, 2022.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

We have a client who tries to save her drafts but get a 400 bad request. I saw that a field had errors. When I try to save it with my admin account, I see the error. When my clients tries to save it, she git a 400 error (see on the screenshot).

The permissions for this user and section type seems to be correct. They have all the rights

Additional info
  • Craft version: Craft Pro 3.7.13
  • PHP version: 8.0.5
  • Database driver & version: MySQL 8.0.24
Screenshot 2021-09-27 at 18 29 12 Screenshot 2021-09-27 at 18 30 30

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.