nystudio107 / craft-retour

Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website
https://nystudio107.com/plugins/retour
Other
39 stars 26 forks source link

Non admin users aren't able to edit a shortlink #280

Closed belkin closed 1 year ago

belkin commented 1 year ago

Describe the bug

Non admin users with rights to Access Retour, Dashboard, Redirects and Short Links aren't able to edit a short. They're getting following error: User is not permitted to perform this action.

To reproduce

Steps to reproduce the behaviour:

  1. Sign in as user which has rights to Access Retour, Dashboard, Redirects and Short Links.
  2. Create a shortlink via shortlink field in een entry.
  3. Go to Retour plugin -> Short Links
  4. See error message "User is not permitted to perform this action"

Expected behaviour

Users with rights to Short links have to be able to edit a short link like they're able to edit a redirect.

Screenshots

User group permissions:

image image

Short link field:

image

Error message after clicking on a short link via de Retour -> Short links:

image

Versions

khalwat commented 1 year ago

I'm unable to replicate this issue.

I set up a user group with the permissions above, and am able to access Short Links without an issue.

Perhaps there is another CP permission that is missing from this user group?

Screenshot 2023-06-27 at 10 43 46 Screenshot 2023-06-27 at 10 43 18 Screenshot 2023-06-27 at 10 42 32