The "view" link shows up, on hover, for unauthenticated/anonymous visitors. The only permissions on the site for "anonymous users" is "access content" because... well... they have to be able to see the content. This, however, allows the module to display the "view" link.

To hide the "view" link from anon users, I adjusted the code on line 148 of 'block_edit.module':

From this:

if (user_access('access content') && $options['view']) {

To this:

if ($user->uid) {

My PHP really sucks, but I tracked this down by happenstance and made this quick, unorthodox fix. ANY chance we could get it written into the module that you can only see the links if you have "edit" permissions?

Comments

gregaltuna’s picture

I even tried hiding the "$links" snippet in node.tpl.php and block.tpl.php and it wouldn't hide the "view" link from anonymous users...

Rob_Feature’s picture

I was going to submit a patch for this, but the git repo seems basically empty..not sure what's up with that. Anyway, I'd recommend that in the latest dev, like 147 should be changed to:

  if (user_access('administer nodes') && $options['view']) {

since the project page says a base permission should be administer nodes.

drnikki’s picture

subscribe.

storytellerjeff’s picture

subscribing. I'm also noticing the same behavior and have disabled the module until there's a stable version with a fix -- but this is a helpful little module to have!

tommyent’s picture

Subscribing

hansyg’s picture

subs

Cumgranosalis’s picture

Status: Active » Closed (duplicate)
Cumgranosalis’s picture

Status: Closed (duplicate) » Active

Yeah, its not fixed, SORRY!

plato1123’s picture

what, is this module abandoned or something? seems like a pretty obvious glitch that makes this module unusable as it is.

edit:

Proper permissions added in the development version ( /admin/user/permissions )

joelstein’s picture

Version: 6.x-1.10 » 6.x-1.x-dev
Status: Active » Closed (cannot reproduce)

In the latest 6.x-1.x-dev version, I cannot reproduce this problem. It seems you simply need to revoke the "view node edit links" from anonymous users, and then none of the links appear at all.

This will be available in a new stable release shortly.