Hello,

I seem to be having an issue that might of might not be code related. Below is a report:

Title: Create Content and Recent Posts still appearing in menus

Description: For the authenticated user, after restricting access via the MPR module,
Create Content and Recent Posts still appearing in menus. The authenticated user roles
are correct and I have also made sure all the parent menu items have been disallowed
for the Authenticated user (see below)

Administer
- Content management
- Create content
- Page
- Create Story
- Create Poll
- Create Recruit Story

Druplay Version: 5.1
Operating System: XP Pro/SP2
Web Server: Apache 1.3.26
PHP: 4.4.4
MySQL: 4.1.22

Other Modules:

TAC
Weather
Google Analytics
Nodewords
Focus

Page: Any

Error: N/A

Error Replication Steps: Just go to any page an the manu items appear

Comments

Lanny-1’s picture

Hi Patrick,

I am a user, not a developer, but I can share my experience with this module. To achieve what you need I had to:

1) Hide the Navigation block
2) Use my own menus for those items from Navigation which I did want to authorize

HIH

Lanny

Patrick Van Rinsvelt’s picture

Wow Lanny - that was quick. I still forget that the OS community is ALWAYS busy.

The module developer has put together a nice solution together and it is still in dev
mode. I am sure that fago is aware of this as I do not seem to be the only user with
this issue. I used to be a coder but those days are loooong gone now.

As for your comments, my reply is YEP. I realize that this is an option and moving around
menu items and placing them into new parents is a fix, but not an elegant one. I really
like to have the user name at the top of the block...it's classy. Makes us look like we know
what we are doing when its coders like fago doing the hard yards.

Yo fago - what do you reckon?

All the best, Pat

Patrick Van Rinsvelt’s picture

Gets even weirder.

I have taken database dumps every minor and major milestone and saved these in perpetuity.
I am also backtracking to see if this behavior happens in 5.0. It does sometimes and it does not at others.

I am now looking at a matrix of versions versus db dumps to see WTF is happening. Hairline is
receding though.

This has happened on my local server as well as hosting servers in the States and India. My
wifes machine does not seem to have the same affliction. This is really screwy.

Pat

Patrick Van Rinsvelt’s picture

Had a look at fagos DB structure and it is pretty easy to follow. Many to many relationship
with menuids and roleids. Table updates happen as they should as you change permissions
within the menu admin system.

We are going to continue testing the 5.0 --> 5.1 upgrade. I have a feeling that this
is where the issue might lie.

Pat

fago’s picture

hm, I've just tested it and it worked like desired.

Perhaps you have misunderstood the setting?
You can restrict the access to the listed roles.
So I have a role admin, I restricted access to admins by check "admin" and logged in as a not-admin -> the create content link disappeared.

neclimdul’s picture

I'm running into this same problem. Not sure how to debug it yet but looking.

neclimdul’s picture

Oh, I think I miss understood.
A) I didn't realize this module had to patch core(yuck).
B) I didn't realize that the original issue was essentially saying this module didn't recursively add the permission. That's how the drupal menu system works though so I'd say there isn't really an issue here. You have to add the access to each entry.

Patrick Van Rinsvelt’s picture

Status: Active » Closed (fixed)

Sometimes I feel like such an idiot. Normally I check to see if anything else
needs to be done but did not with this module.

I put the patch in as well and all seems fine now under 5.0 and 5.1.

I have closed the support request.

Thanks all --- Pat