alchemy_cms
alchemy_cms copied to clipboard
Enhance Page restriction feature to consider user roles
Is your feature request related to a problem? Please describe. Currently, I can only prevent guest visitors from accessing certain pages by setting their restricted attribute. In turn this means any logged-in user can access those pages. I'd like to enhance this feature so that user roles are considered for allowing / restricting access.
Describe the solution you'd like UI part: Checking the "restricted" checkbox in the Page properties unfolds a list of checkboxes for user roles. By default all user roles are selected (makes the feature backwards compatible). By un/selecting checkboxes the editor can control wether or not specific user roles can access the page.
I have already implemented something similar for my company website. Maybe I could extract the code and make a PR when I'll have enough time. Since I have a lot of roles, I used a list and not checkboxes.
I like that idea and we have code in one of our client projects as well.
This issue has not seen any activity in a long time. Please create a pull request with a fix or ask someone of the community if they can help. This issue will be closed in 7 days if no further activity happens.
Still an interesting feature.
This issue has not seen any activity in a long time. Please create a pull request with a fix or ask someone of the community if they can help. This issue will be closed in 7 days if no further activity happens.
still
This issue has not seen any activity in a long time. Please create a pull request with a fix or ask someone of the community if they can help. This issue will be closed in 7 days if no further activity happens.
still valid
This issue has not seen any activity in a long time. Please create a pull request with a fix or ask someone of the community if they can help. This issue will be closed in 7 days if no further activity happens.
This issue has not seen any activity in a long time. If the issue described still exists in recent versions of Alchemy, please open a new issue with. Thanks for reporting.