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 |
Jump to:
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
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
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
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