- Issue created by @joelseguin
- Issue was unassigned.
- 🇮🇪Ireland markconroy
Thanks for posting this @joelseguin. I'll work on a fix for it.
---
Thanks to Code Enigma for sponsoring my time to work on this. - Status changed to Needs review
10 months ago 9:58am 26 July 2024 - 🇮🇪Ireland markconroy
Hi @joelseguin
I have a merge request ready for this. Can you test it please?
https://git.drupalcode.org/project/content_access_by_path/-/merge_reques...
The only file you need to look at is the changes in the .module file. All the other changes are just coding standards fixes.
Thanks very much.
---
Thanks to Code Enigma for sponsoring my time to work on this. - 🇨🇦Canada joelseguin Ontario, Canada
@MarkConroy
I've applied the patch to my test site and it works great!
I've tested against a few different scenarios and it is working as I would expect. I even tried adding a content type that my test user does not have edit/delete permissions and it could only be seen in the content list (view only).
The one thing I did notice was that if this patch gets merged it would be an important change in how the module works with permissions.
- For existing sites that have not assigned specific content type permissions to roles, then those roles would lose access to modify/delete altogether. I've tested this out and it is the case.
- It should probably be mentioned that after updating the module, site builders should go back and verify the content type permissions since content access will likely be different following the update.
- For new users of the module, it might also be helpful to provide a reminder on the Content Access By Path taxonomy term form display. For example: Make sure to provide the necessary permissions to content types as well.
-
markconroy →
committed 53d13d23 on 1.0.x
Resolve #3463597 "Permissions check"
-
markconroy →
committed 53d13d23 on 1.0.x
- Status changed to Fixed
9 months ago 10:54am 1 August 2024 - 🇮🇪Ireland markconroy
Thanks @joelseguin I have this merged now.
I think this approach is the correct approach, so there is a double layer before you can edit things
- it must be in the path you are allowed edit and
- you must have the correct permissions to edit itThis means if you have a node of type event inside this path but are not allowed to edit events, we catch that.
Automatically closed - issue fixed for 2 weeks with no activity.