Closed (cannot reproduce)
Project:
Block edit
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 21:46 UTC
Updated:
27 Dec 2011 at 17:29 UTC
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
Comment #1
gregaltuna commentedI 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...
Comment #2
Rob_Feature commentedI 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:
since the project page says a base permission should be administer nodes.
Comment #3
drnikki commentedsubscribe.
Comment #4
storytellerjeff commentedsubscribing. 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!
Comment #5
tommyent commentedSubscribing
Comment #6
hansyg commentedsubs
Comment #7
Cumgranosalis commentedPlease see http://drupal.org/node/738488
Comment #8
Cumgranosalis commentedYeah, its not fixed, SORRY!
Comment #9
plato1123 commentedwhat, 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 )
Comment #10
joelstein commentedIn 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.