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.
Comments
Comment #1
drubeedoo commentedSeems 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!
Comment #2
buddaThe 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*?Comment #3
drubeedoo commentedNow 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.
Comment #4
budda