The problem with the 'view' link is that most anonymous users on most sites have view permissions and so what happens is that this strange view link shows up for anon users. The simple solution to me is to implement a hook_perm() hook and add a permission so that you can only allow privileged users to see these links.

As it stands right now, it just checks the permissions for what specific task it's looking at (edit/view/etc) and that doesn't quite work for the example I mentioned.

Comments

irakli’s picture

Status: Active » Fixed

Not sure what you mean, permissions are already there:

function block_edit_perm() {
  return array('view block edit links', 'view node edit links');
}
drupalninja99’s picture

Version: 6.x-1.9 » 6.x-1.10

hey irakli i cant find this, I searched "block_edit_perm" and didnt find it. I'm using version 1.10 and I don't see it

beltofte’s picture

The implementation of hook_perm() only exists in the dev version, not in the 6.x-1.10 version of the module.

jgsantos’s picture

I'm having the same problem (using version 6.x-1.10). Any suggestions ?

dwightaspinwall’s picture

@jgsantos - update to the dev version where you'll get the perms you need

Status: Fixed » Closed (fixed)

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