alchemy_cms icon indicating copy to clipboard operation
alchemy_cms copied to clipboard

Enhance Page restriction feature to consider user roles

Open robinboening opened this issue 3 years ago • 8 comments

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.

robinboening avatar Aug 07 '21 09:08 robinboening

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.

afdev82 avatar Feb 10 '22 08:02 afdev82

I like that idea and we have code in one of our client projects as well.

tvdeyen avatar Feb 11 '22 23:02 tvdeyen

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.

github-actions[bot] avatar Apr 13 '22 01:04 github-actions[bot]

Still an interesting feature.

tvdeyen avatar Apr 13 '22 05:04 tvdeyen

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.

github-actions[bot] avatar Jun 13 '22 02:06 github-actions[bot]

still

tvdeyen avatar Jun 13 '22 04:06 tvdeyen

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.

github-actions[bot] avatar Aug 14 '22 02:08 github-actions[bot]

still valid

tvdeyen avatar Aug 14 '22 07:08 tvdeyen

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.

github-actions[bot] avatar Feb 12 '23 01:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 15 '23 01:03 github-actions[bot]