Skip to content

7.3.5 MSM Template access permissions can get wiped editing Roles #3568

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

Closed
robinsowell opened this issue Jun 26, 2023 · 1 comment · Fixed by #3576
Closed

7.3.5 MSM Template access permissions can get wiped editing Roles #3568

robinsowell opened this issue Jun 26, 2023 · 1 comment · Fixed by #3576
Assignees
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@robinsowell
Copy link
Contributor

This is hard to reproduce- I'm going to send over a database that you can use. I could NOT always reproduce it and I dug a fair bit. I give up.

But- with the database (was originally a 7ish v, not ancient), go to Default site. Go to Roles, select 'Editor' to edit. Go to the 'Template Access' tab. Click 'Check all' to select all of the groups/templates. You might have to click it once to select, once to unselect, once to select again.

Then switch sites to Dos, go to Roles, edit 'Editor' go to 'Template Access' tab, make sure they're all selected, save. Go back to Default and check the Editor Template Access settings- they were unset.

Note- this came in via slack, I could not immediately replicate. I added to templates to the Dos site, so that I had some duplicate template_group/template names. Then I could replicate. This is my main testing site, but I uninstalled all third party add-ons, so hopefully nothing weird in play.

I tried replicating on a totally fresh and empty install, made the like 2 templates, a 'dos' site, tried editing the 'Member' role- never could trigger it.

Oh- and I also tried editing template access permissions in the Template manager for the individual files. Never could trigger an error that way.

@robinsowell robinsowell added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Jun 26, 2023
@intoeetive
Copy link
Contributor

This only happens if you use "toggle all" to deselect everything. Then values from other sites (which are hold in hidden input) are erased

intoeetive added a commit that referenced this issue Jun 29, 2023
…MSM site would also deselect it on other sites
intoeetive added a commit that referenced this issue Jun 29, 2023
…MSM site would also deselect it on other sites

(cherry picked from commit be986b6)
intoeetive added a commit that referenced this issue Jul 6, 2023
…MSM site would also deselect it on other sites
bryannielsen added a commit that referenced this issue Aug 14, 2023
…ccess-saving

Resolved #3568 where deselecting all template access for Role in one MSM site would also deselect it on other sites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
3 participants