Project:Restricted content
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I think this is because it's using hook_nodeapi('load') instead of hook_nodeapi('view') - taxonomy/term/323 on the development site for an example. Switching to $op == 'view' might help with body vs. teaser option as well.

Comments

#1

Seems like a good change. I'm trying to remember the reason why I used hook_nodeapi('load')... I think it was so I could adjust the variables in the preprocess function. I'll check on this.

#2

Status:active» needs review

Usering 'alter' actually seems OK here since we're replacing stuff added during view. Here's a patch for that. Could maybe do it by setting a low module weight but other modules might do the same thing.

AttachmentSize
restricted_content_alter-448404.patch 925 bytes

#3

This patch works for me as well. I am using node_images module and experienced hiding only text in the teaser and not the images. Thanks!

#4

Status:needs review» reviewed & tested by the community

Patch works for me !!

#5

Status:reviewed & tested by the community» fixed

Fixed in CVS. Thanks!

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here