Can Path Access module restrict access to specific edit pages?

drubeedoo - February 16, 2006 - 19:29
Project:Path Access
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

Greetings,

It would really be helpful if this module allowed me to restrict access to an edit page such as:

user/*/edit/Officer+Profile

The page above is a user profile page with a Category of "Officer Profile" that has several fields I want visible, but not editable, except by the administrative user. I would like to prevent edit access to any user number, therefore the user/* rather than user/2 is provided above.

Thank you for your consideration.

#1

drubeedoo - February 16, 2006 - 20:04
Category:feature request» bug report
Priority:normal» minor

Seems to be an issue with the + in the path name... works fine if Category is shortened to one word. I will test this more later... in the meantime, I'm changing this from a feature request to a minor bug.

Thanks for a great module!

#2

budda - February 17, 2006 - 11:51

The path parsing code is exactly the same as used in the Block module. It uses regular expressions, where a + and a * have special meanings.

You could maybe restrict your path match to user/*/edit/Officer* ?

#3

drubeedoo - February 18, 2006 - 03:18

Now that you brought up regular expressions, it makes perfect sense. The following expressions work just fine:

/user/*/edit/Officer*Profile
/user/*/edit/Officer*

Maybe you can mention "regular expressions", or "use * in place of spaces/special characters" somewhere in the module example text.

Thanks for the clarification. I'm still looking at Drupal from an end-user usability point of view and couldn't understand why a perfectly valid Drupal page name would not work in the module.

#4

budda - February 26, 2006 - 23:19
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.