see which groups can see a page
Permalink
Hi,
i'm wondering if it is possible to see which user groups are allowed to see a page.
I have blog posts where some are for everyone, and some are just for the RegisteredUsers group, I want to be able to add a visual flag/indication on the website, to show logged in visitors which blog posts are for RegisteredUsers.
Any help would be appreciated, i've looked at the permissions page under 'Developer' and it seems to just let me know if my current logged in user can or can't view something.
Cheers
- Chris
i'm wondering if it is possible to see which user groups are allowed to see a page.
I have blog posts where some are for everyone, and some are just for the RegisteredUsers group, I want to be able to add a visual flag/indication on the website, to show logged in visitors which blog posts are for RegisteredUsers.
Any help would be appreciated, i've looked at the permissions page under 'Developer' and it seems to just let me know if my current logged in user can or can't view something.
Cheers
- Chris
In edit mode we can already get the view/edit permissions of current page by group, so I went looking for the tools/helper/element(s) that renders that.
Assuming you're running simple permissions on your site you'll end up calling the /concrete/elements/collection_permissions_simple.php element.
That file would seem to contain enough code to help you render groups that can view your page on your blog posts.
Hope that's useful - if a bit high level!