Propagating permissions on already existing pages
Permalink
Short version here:
I have a site using 2 languages so I have two branches under the Home page, one being En (for English).
My intent was to make only the files under the "En" branch editable by a certain user (that belongs to the En_Editors group).
I followed these steps:
- added "define('PERMISSIONS_MODEL', 'advanced');" to config/site.php to enable advanced permissions.
- created En_Editors group and editor1 user in it.
- in full sitemap clicked on the "En" page and chose "set permissions"
- made it "set: manually", add the En_Editors group to the table and check the desired permissions for it.
- Verified that I have the "Sub-pages added beneath this page:" set to "Inherit the permissions on this page" then Save.
Until here everything as expected.
However, verifying the permissions of random pages in the hierarchy under the "En" page, I have noticed that permissions vary according to 3 cases:
1. Certain files had permissions inherited from the "En" page - OK! This is what I expected.
2. Certain files had permissions set on "manually", and different than what I set at the hierarchy top - not OK. (It could be the fact I tried to set those pages' permissions individually before activating the advanced permissions. Still, not OK, because I expected they should've been overwritten, i.e. inherited from the parent)
3. Certain files had permissions inherited but from the "Home" page instead of "En" - not OK!
For those pages having the permissions set to "manually" (case 2 above) I had to reset the permissions to "by Area of Site (hierarchy)".
For those set with "Home" as parent page (case 3 above), as the page it is inheriting from cannot be chosen (why?!), I had to set it first to "manually", then save, then in one more step set again to "by Area of Site (hierarchy)".
After this operation the "This page inherits its permissions from:" took the right value "En" instead of "Home".
Luckily, I have noticed that even if it says "This page inherits its permissions from: Home", if I simply click Save it actually sets it right, to the "En" page, so it kinds of overwrite/recomputes the parent value if just saved again! Few clicks saved.
So, all in all too many clicks... I had to check and modify accordingly each and every file in the hierarchy.
Any other simpler solution for applying permissions on already existing pages?
Longer versions here:
http://it-quirks.blogspot.com/2013/03/concrete5-adding-editors-and-...
I have a site using 2 languages so I have two branches under the Home page, one being En (for English).
My intent was to make only the files under the "En" branch editable by a certain user (that belongs to the En_Editors group).
I followed these steps:
- added "define('PERMISSIONS_MODEL', 'advanced');" to config/site.php to enable advanced permissions.
- created En_Editors group and editor1 user in it.
- in full sitemap clicked on the "En" page and chose "set permissions"
- made it "set: manually", add the En_Editors group to the table and check the desired permissions for it.
- Verified that I have the "Sub-pages added beneath this page:" set to "Inherit the permissions on this page" then Save.
Until here everything as expected.
However, verifying the permissions of random pages in the hierarchy under the "En" page, I have noticed that permissions vary according to 3 cases:
1. Certain files had permissions inherited from the "En" page - OK! This is what I expected.
2. Certain files had permissions set on "manually", and different than what I set at the hierarchy top - not OK. (It could be the fact I tried to set those pages' permissions individually before activating the advanced permissions. Still, not OK, because I expected they should've been overwritten, i.e. inherited from the parent)
3. Certain files had permissions inherited but from the "Home" page instead of "En" - not OK!
For those pages having the permissions set to "manually" (case 2 above) I had to reset the permissions to "by Area of Site (hierarchy)".
For those set with "Home" as parent page (case 3 above), as the page it is inheriting from cannot be chosen (why?!), I had to set it first to "manually", then save, then in one more step set again to "by Area of Site (hierarchy)".
After this operation the "This page inherits its permissions from:" took the right value "En" instead of "Home".
Luckily, I have noticed that even if it says "This page inherits its permissions from: Home", if I simply click Save it actually sets it right, to the "En" page, so it kinds of overwrite/recomputes the parent value if just saved again! Few clicks saved.
So, all in all too many clicks... I had to check and modify accordingly each and every file in the hierarchy.
Any other simpler solution for applying permissions on already existing pages?
Longer versions here:
http://it-quirks.blogspot.com/2013/03/concrete5-adding-editors-and-...