Skip to content
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

Contact module settings: Permissions do not stick for the Administrator role #6063

Closed
klonos opened this issue Apr 17, 2023 · 4 comments
Closed

Comments

@klonos
Copy link
Member

klonos commented Apr 17, 2023

Description of the bug

It seems that the Contact module permission checkboxes for the Administrator role are always reset to ticked/enabled.

Steps To Reproduce

To reproduce the behavior:

  1. Enable the Contact module
  2. Navigate to admin/structure/contact/settings -> by default, all permissions are ticked for the Administrator role
  3. Enable some of the permissions for other roles, and disable some or all of the permissions for the Administrator role.
  4. Save the form -> the permissions for the other roles are saved properly 👍🏼 however, all permissions for the Administrator role are reset to enabled 👎🏼
  5. Repeat steps 3 and 4 with different roles/permissions ->

Actual behavior

Every time the permissions for the Administrator role are being reset (enabled).

Expected behavior

The permissions for the Administrator role should be saved properly.

Additional information

I have tested the same with the permissions matrix available in the content type edit form, and the permissions there seem to be working as expected. So this issue seems to be limited to the permissions matrix in the Contact module permissions. We should check other permission matrices as well though, to make sure.

@jenlampton
Copy link
Member

Permissions issues are critical, so adding bug-fix milestone candidate label.

@klonos
Copy link
Member Author

klonos commented Apr 20, 2023

Very simple fix: backdrop/backdrop#4410

...too bad that I didn't look earlier. Missed the chance to include this in the security releases that happened a few hours ago.

@klonos klonos changed the title Permissions do not stick for the Administrator role under admin/structure/contact/settings Contact module settings: Permissions do not stick for the Administrator role Apr 20, 2023
@klonos
Copy link
Member Author

klonos commented Apr 20, 2023

Noting that we don't need this for 1.x if we merge #5031. I tested and confirmed that I cannot reproduce this issue in the sandbox of the PR for that issue 😉

@bugfolder
Copy link

Although #5031 is not yet merged, I just tested this with the 1.27.x-dev version (as of 2023-08-28), and I don't see the problematic behavior. If I just check the "Editor" permission and uncheck all "Administrator" permissions, then save, that is reproduced after saving.

Couldn't test this on the sandbox because Tugboat didn't build the sandbox when I closed and reopened the PR. But it appears that this issue has been fixed by other means.

Git blame tells me this was fixed by PR backdrop/backdrop#4472 for issue #6117, which has been merged into 1.26.1. (And it's exactly the same change in the PR.)

Closing the issue as no longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants