node access issue
Hi, I have just been given a hairy request from a client and need to guidance to what would be the best method of doing this. The site is a heavily customised drupal 4.6 which is running the organic groups. Organic groups is using the node access table already, which causes a conflict with the node_priv_by_role module. But what they want I think maybe able to be done via something else, but I am not sure what. Basically they want is for anonymous users to only access a few bits of content, and nothing else, where as authenticated users will see everything there, which hasn't been restricted by organic groups. Any ideas will be much appreciated. Gordon.
Its a hairy issue, because Drupal, for example, indexes the whole node in search. Wozever, your best shot would be to use nodeapi _load and there replace $node->body with something else., when $user->uid == 0 . Bèr Op maandag 28 november 2005 03:18, schreef Gordon Heydon:
Hi,
I have just been given a hairy request from a client and need to guidance to what would be the best method of doing this.
The site is a heavily customised drupal 4.6 which is running the organic groups. Organic groups is using the node access table already, which causes a conflict with the node_priv_by_role module.
But what they want I think maybe able to be done via something else, but I am not sure what.
Basically they want is for anonymous users to only access a few bits of content, and nothing else, where as authenticated users will see everything there, which hasn't been restricted by organic groups.
Any ideas will be much appreciated. Gordon. Bèr -- | Bèr Kessels | webschuur.com | website development | | Jabber & Google Talk: ber@jabber.webschuur.com | http://bler.webschuur.com | http://www.webschuur.com |
Hi, Thanks for this, this seems like a fairly simple option that may work fairly well, and meet the requirements. Thanks Gordon. On Mon, 2005-11-28 at 09:00 +0100, Bèr Kessels wrote:
Its a hairy issue, because Drupal, for example, indexes the whole node in search.
Wozever, your best shot would be to use nodeapi _load and there replace $node->body with something else., when $user->uid == 0 .
Bèr
Op maandag 28 november 2005 03:18, schreef Gordon Heydon:
Hi,
I have just been given a hairy request from a client and need to guidance to what would be the best method of doing this.
The site is a heavily customised drupal 4.6 which is running the organic groups. Organic groups is using the node access table already, which causes a conflict with the node_priv_by_role module.
But what they want I think maybe able to be done via something else, but I am not sure what.
Basically they want is for anonymous users to only access a few bits of content, and nothing else, where as authenticated users will see everything there, which hasn't been restricted by organic groups.
Any ideas will be much appreciated. Gordon. Bèr
I was thinking about og for a project that I'm working on, with a similar goal: organic groups for users but high privacy restriction for non-users. A more elegant solution might be to automatically subscribe all users to an "authenticated" organic group. All default content would be assigned to the "authenticated" group, providing the same sort of privacy node_perm could provide. I haven't gone so far as to looking at implementing this, but if it something you would like to collaborate on, I would be eager to work with you. Cheers, Mark Fredrickson E-Advocacy Manager Planned Parenthood Minnesota, North Dakota, South Dakota 1200 Lagoon Ave. Minneapolis, MN 55408 Ph: 612.821.6154 Fax: 612.825.3522 Email: mfredrickson@ppmns.org Are you a member of the Action Network? http://www.ppaction.org/ppmsd/join.tcl
From: Gordon Heydon <gordon@heydon.com.au> Reply-To: <development@drupal.org> Date: Mon, 28 Nov 2005 22:01:48 +1100 To: <development@drupal.org> Subject: [bayes][bcc][faked-from] Re: [development] node access issue
Hi,
Thanks for this, this seems like a fairly simple option that may work fairly well, and meet the requirements.
Thanks Gordon.
On Mon, 2005-11-28 at 09:00 +0100, Bèr Kessels wrote:
Its a hairy issue, because Drupal, for example, indexes the whole node in search.
Wozever, your best shot would be to use nodeapi _load and there replace $node->body with something else., when $user->uid == 0 .
Bèr
Hi, you may find useful to look at this http://drupal.org/node/24868, Robb had made a module that works very well in 4.6.x that let you use many modules using node_access. eric Le 28 nov. 05 à 03:18, Gordon Heydon a écrit :
Organic groups is using the node access table already, which causes a conflict with the node_priv_by_role module.
Hi, Thanks for this. It looks like exactly what I need. Does anyone know the status on this? how stable is it? could it be used on a production site. Thanks again. On Wed, 2005-11-30 at 16:20 +0100, Eric Charikane wrote:
Hi, you may find useful to look at this http://drupal.org/node/24868, Robb had made a module that works very well in 4.6.x that let you use many modules using node_access. eric
Le 28 nov. 05 à 03:18, Gordon Heydon a écrit :
Organic groups is using the node access table already, which causes a conflict with the node_priv_by_role module.
!DSPAM:438dcaa2143069855420151!
It works fine for me and I think it can be use on a production site. I will use it for a site I will release in the next weeks (that's my hope :-)). I think Robb plan to port is module to 4.7, but you'd be safer to check with him if you need it : robb@canfield.com . regards. eric Le 30 nov. 05 à 21:29, Gordon Heydon a écrit :
Does anyone know the status on this? how stable is it? could it be used on a production site.
Hi, Thanks for this, I have also spoken to Robb, and he raised my level of confidence about the code all over the README's which state alpha code, yada, yada Thanks. Gordon. On Thu, 2005-12-01 at 08:10 +0100, Eric Charikane wrote:
It works fine for me and I think it can be use on a production site. I will use it for a site I will release in the next weeks (that's my hope :-)). I think Robb plan to port is module to 4.7, but you'd be safer to check with him if you need it : robb@canfield.com . regards. eric
Le 30 nov. 05 à 21:29, Gordon Heydon a écrit :
Does anyone know the status on this? how stable is it? could it be used on a production site.
!DSPAM:1000,439278da99326732721593!
participants (4)
-
Bèr Kessels -
Eric Charikane -
Gordon Heydon -
Mark Fredrickson