Members can save entries with statuses to which they do not have access
shbchk opened this issue · comments
Permissions: members of the "Editors" group can edit their own entries and those of others, but they cannot access the "Open" status.
Expected behaviour:
Members of the "Editors" group can see and open all entries in the CP, including "Open" entries, but they are not allowed to save entries with "Open" status. If an entry has an "Open" status, in order to save edits, an Editor must change the status of the entry to something else that they can access. Preferably, channel's default status should be selected automatically.
Current behaviour:
Despite the status restrictions, all members are able to open, edit, and save entries with an "Open" status.
2024-06-13_17-34-08.mp4
EE 7.4.10
I could be wrong, but I think, this bug was introduced when the status dropdown got colors. It worked as expected before.
Ah- I do confirm. It throws the warning to change the status, but if you don't and you save, your edits 'stick' and it still has the Status they don't have permission to access.
I think at one point, this was simply intended behavior, but I won't swear to it. And given that it now throws a warning that you need to change the status but allows you to save anyway, that looks like a bug. Confirming it as such....
Example of warning message and going ahead saving anyway below.
![Screenshot 2024-07-08 at 12 54 25 PM](https://private-user-images.githubusercontent.com/1181219/346658427-daa35267-ddf9-4466-bdf6-212f232e4a64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzNzA0MzEsIm5iZiI6MTcyMjM3MDEzMSwicGF0aCI6Ii8xMTgxMjE5LzM0NjY1ODQyNy1kYWEzNTI2Ny1kZGY5LTQ0NjYtYmRmNi0yMTJmMjMyZTRhNjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDczMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MzBUMjAwODUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmY5YTAyZWRlYTc5M2JjMzNlOGQxOTQzMTQ4YmYyYjBjMDhiNGRiNDc2MDYyOWMzYWU4ODM5N2M3NzlmMDdmZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.jWNpz2Vy_P1LIsTK6dXPNvOnDU8Dc7_PQb_RO1nB1dU)