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

Save as Copy option without Create permission #11723

Closed
3 tasks done
allanmoso opened this issue Feb 18, 2022 · 0 comments · Fixed by #11762
Closed
3 tasks done

Save as Copy option without Create permission #11723

allanmoso opened this issue Feb 18, 2022 · 0 comments · Fixed by #11762
Labels

Comments

@allanmoso
Copy link

Preflight Checklist

Describe the Bug

Save as Copy option is showing up on the Alternate Save options on the Item Pages even when the user does not have the Create permission. This issue can be a good improvement especially if issue #11722 is not resolved.

This is also the same with "Save and Create New".

To Reproduce

  1. Create a collection.
  2. Create a new record for the collection.
  3. Create a new role that does not have the Create permission for the new Collection. It must have at least Read and Edit permission.
  4. Create a new user with the new role and login as that user.
  5. Create a new record for the collection.
  6. Edit the new record (keeping the unique value field unchanged) without saving yet.
  7. See that the "Save As Copy" is available.

Attempting to Save As Copy will not seem to do anything and there are no visible errors to the user but the Network logs will show the permission error.

Errors Shown

No response

What version of Directus are you using?

9.5.2

What version of Node.js are you using?

17.3.0

What database are you using?

Postgres 13

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying Directus?

Docker (local development) and Heroku (for Test, Prod)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants