Closed (fixed)
Project:
footermap: a footer site map
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
15 Oct 2009 at 02:29 UTC
Updated:
3 Dec 2009 at 19:50 UTC
Users who cannot access links should not see them in the footermap. I don't particularly want to node_load each link though and that also won't work if there are links that are not to nodes.
Comments
Comment #1
mstrelan commentedFor some reason I can't patch against your file so here's the code to allow this.
(difference is global $user and node_access)
Comment #2
mradcliffeI've done this in a slightly different way. I think that footermap should be based off of anonymous user rather than an authenticated user. Although I guess this breaks for extranet and intranet sites. It might look nicer if it was the same for all users rather than different dependent on the user.
Looks like another setting :(
Comment #3
mradcliffeI've tested my implementation, and it works fine. However, there are some caveats.
1. Manually created menu items of course don't have any access requirements by default. So they'll always show up. This shouldn't be a problem as that can be controlled via block access (hopefully).
2. Manually created menu items to nodes. It looks a bit odd via the above issue because it works properly in footermap, but of course since primary links doesn't care, it's still in primary links or wherever that menu item exists. This is more of a core drupal quirk.
Comment #4
mradcliffe