Module should obey node_access settings, so access modules are honored

pillow - August 17, 2008 - 02:57
Project:SiteMenu
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

SiteMenu lists all the nodes to the roles which are not allow to view the content.
So the user with that role will get the following warnings after click:

Access denied
You are not authorized to access this page.

Is it by design or can be adjusted? Thanks.

#1

kbahey - August 17, 2008 - 03:08
Title:It does not cooperate with TAC» Module should obey node_access settings, so access modules are honored
Category:bug report» feature request

It was not a design criterion, so changing to a feature request.

#2

kbahey - August 17, 2008 - 14:37

Note: to do this, we can use the same scheme that site_map uses.

#3

pillow - August 18, 2008 - 04:30

Thanks, but SiteMenu is the most suitable one to our need except cooperation with tac.
SiteMenu will list all the content under special term, but Site Map module won't do that, not optional even.

#4

kbahey - August 18, 2008 - 15:23
Status:active» needs work

I did not mean use the other module, I meant this as a note to whomever wants to submit a patch to look in the code of the other module and come up with a solution faster.

#5

pillow - August 19, 2008 - 04:47

Sorry for my poor english understanding and carelessness.......

#6

pillow - August 19, 2008 - 10:11

I've found something different more:
SiteMenu will display the node no matter what current user's permission is, but won't show the vocabularies and terms themself.
Lonely the vocabularies was showed by SiteMap no matter what current user's permisson is, as current user has no permission to list terms or terms associate with the term.

eg:
Module TAC + SiteMap + SiteMenu

Role A

Vocabuary1
term11 A was denied to view

Vocabuary2
term21 A was allowed to view

there is a tagged with Term11 and term21 both.

When A access SiteMenu, it will display as below:

Vocabuary2
term21
node XXX

got "Access denied,You are not authorized to access this page" after click

When A access Sitemap, it will display as below:

Vocabuary1

Vocabuary2
term21

it won't list node XXX after click term21 under Vocabuary2

Through SiteMenu, what I think it should to be is:

Vocabuary2
term21
node YYY
node ZZZ
...........

Am I impracticable?

 
 

Drupal is a registered trademark of Dries Buytaert.