How do I hide certain elements from normal users (not logged in). For example, say I wanted to hide the tabs (the one that has view, edit etc.), how do I do this? In template.php? Exact or sample codes are appreciated.

Comments

Umm.. it's not supposed to

Umm.. it's not supposed to appear for guests by default.

really? it does, when I used

really? it does, when I used the zen theme..

I search around and disabled

I search around and disabled the backlink in views. Then the tab magically disappeared.. I guess the view tab will appear if there is one tab element enabled..

But say if I want to show/hide certain elements (e.g. primary links), how do I do that?

View/Edit Tabs show for guests

I have the exact same problem and can't seem to track it down: the view and edit tabs show up even when a user is not logged in. If you click on the edit tab it show's the access denied page. I have my permissions set to disallow anonymous users to edit any content type.

Also, I have tried switching to the 'bluemarine' and 'garland' themes and still have the same problem.

Drupal v.6.9

Drupal 6.12, Apache/2.2.11 (Unix), PHP 5.2.9, MySQL 5.1.30

Found the problem for me

I found that disabling the module Node Gallery Access does the trick (I have 6.x-1.0-alpha6). Guess that's why it's 'alpha' software :)

Drupal 6.12, Apache/2.2.11 (Unix), PHP 5.2.9, MySQL 5.1.30