-
Notifications
You must be signed in to change notification settings - Fork 11
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
unauthorized message on all protected links #13
Comments
@Melisssa what is the template code you're using? |
{{ craft.protectedLinks.link({assetId: files.id, inline: true, members: [1,2,10]}) }} |
@Melisssa I'm unable to replicate this. Can you confirm you are logged in and your ID is one of the listed (1, 2, 10)? |
I was logging in as 10. I noticed if I log in as 1 or 2 (admin group), the links do work. I added another user (237) which is in the editor group and that also works. 10 is not in any group - they do not have access to the CP. 10 does not work. This user logs in only on the front-end and accesses a member area that has these links. This was all working before upgrading. |
I tested again with the member that is not in any group, however did not get any error (I had to make sure the individual member has "View volume" permission for assets folder though) If you turn the dev mode on, what is the exact line / piece of code that throws an error? |
I'm getting the same error. It appears that the checkPermission is using the volumeId when it should be using the volume->uid. (thats if you are using the project-config i guess?)
|
@samuelbirch what Craft version are you running? |
3.7.13 |
i see you've already fix it in 0.0.4. - I'm on 0.0.2 and quickly checked the change log. - Saw there was no updates so assumed i was on the latest. - didn't check the tags. - doh! |
Hey,
I updated to the latest version and now all the protected links show an "unauthorized" message that says "you are not allowed to access this file".
It was working perfectly before the upgrade.
Thanks
The text was updated successfully, but these errors were encountered: