restrict access to content of menu items

mysocom - June 17, 2007 - 11:57
Project:Menu per Role
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I installed menu_per_role module and path to menu.inc and for example users can't see my private menu but If users know path they can access to it ! Is it normal ?

#1

fago - June 28, 2007 - 18:14
Priority:critical» normal
Status:active» won't fix

no, it isn't. probably it's a special case, where another (not visible) menu item is stepping in and doing the work.

#2

jandoemen - October 8, 2007 - 11:34
Status:won't fix» active

+1 I have the same problem. (using DP 5.2, patched as described)
I created a new page, gave it the menu item "Testing" and set the URL to "test". It showed up in the menu.
Then I restricted the menu "Testing" to the group "admins" only. I logged out and the menu item "Testing" was gone. Then I entered "www.mysite.com/test" in the address bar of the browser and the content of the restricted page is visible (not the menu item).

Does the module only hides the menu items or should it really restrict the content too? If not, it would be great if you could add this feature.

Thanks in advance

#3

jandoemen - October 11, 2007 - 15:42

I tried experimenting to use the patch lines in some other places that would show the nodes but I can't figure out where it should go to work. Could someone help out please?

#4

sfinerty - November 23, 2007 - 01:11

I use a combination of Content Types (CCK module) and Taxonomy Access Control to restrict access to pages (nodes). It's a good idea to think about the structure of your site content and how you want to break it down for a couple of reasons:

1) To make the site easier to navigate
2) To control access for different roles to different content

With the CCK (Content Creation Kit) you can define any number of content types (although I'm pretty sure this is available in the core of 5.1 and up) and restrict access to specific roles.

Using the TAC module, you can restrict access to any category or sub-category and as long as you apply a category to your node, it will be restricted.

My understanding of this module is that it only makes specific menu items available to the defined roles although I have not been able to get this to work yet. I am still getting my menu items showing up for every role even though I have restricted them.

I haven't applied the patch yet though, so will try that...

 
 

Drupal is a registered trademark of Dries Buytaert.