Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would it be possible to document how Commons implements "require user to log in" and how the exceptions by path are allowed?
Since several of Commons users have expressed an interest in hybrid private / public Commons sites, might it make sense to consider more flexible approaches going forward, using standard modules?
This is related to http://drupal.org/node/1438532, but is a more general question that I thought deserved its own issue.
Comments
Comment #1
lightsurge CreditAttribution: lightsurge commentedThis all happens in commons_core.module in the function commons_core_force_login()
I'm using Commons as a sort of public/private site so just turned this off.
Comment #2
jsibley CreditAttribution: jsibley commented@lightsurge, if you have force login turned off, how are you keeping the private part of your site private? Do you do this by path, by content type, and what modules do you use for this?
Thanks.
Comment #3
lightsurge CreditAttribution: lightsurge commentedI don't know that you'd need modules, for each view you can set a permission to view it of 'authenticated', which would prevent access and remove the related menu items for anonymous users. You could disable access for anonymous to view the group content type, so that anonymous user can't get to group landing pages by path node/[nid].
You could probably use something like http://drupal.org/project/menu_access if you wanted to have some menu items just for anonymous users.
Comment #4
lsolesen CreditAttribution: lsolesen commentedClosing out old issues. Please reopen if still relevant.