Mailing lists should be "public" or "private", or role based, so that users can only see mailing lists based upon their user role.
Mailing lists should be "public" or "private", or role based, so that users can only see mailing lists based upon their user role.
Comments
Comment #1
arthurf commentedI did this on this node:
http://drupal.org/node/69002
Comment #2
allie mickaPlease submit patches by issue, not in rollup patches.
I would prefer not to add complexity or hijack the status flag, which means something very different already. This also does not provide any role/permissions functionality, or allow the list to be usable/meaningful in any other way if Drupal thinks it's unpublished.
Perhaps the most appropriate solution for this is "subscribe to
" on the admin/access page?
Without the use of node_access modules, we won't be able to hide it completely. I suspect this is why you're trying to hijack status. But we can hide it from the /mlm page by respecting the access settings.
One use case we will definitely want to address is providing a mechanism for people who are subscribed, don't want to be, and still need the ability to unsubscribe themselves.
Comment #3
arthurf commentedOk so I see the logic for display being:
if the user is a subscriber, display, else if the list is not hidden, display
Now the question is where do we want to store this value if we're not using the node status- it seems like we could use the mlm settings table, or we could store something in the variables table. Variables table seems like a less sustainable way to do this and since we already have the mlm settings table, might be a logical place to put it.
Comment #4
arthurf commentedso maybe name = visibility, value = 0 or 1 ?
Comment #5
arthurf commentedHere's the code I'm using to do it via access roles:
and
Comment #6
allie mickaUpcoming work on this will involve node access settings, since node access modules are no longer mutually exclusive, and you get list hiding 'for free'.
The biggest hangup is UI.