Is there a module or way or restricting editing by the path of the page?

Would love to be able to say user role A can only edit pages with something/* path.

(The Path Access module does a great job at retricting viewing by path but what I need is to restrict editing.)

Comments

WorldFallz’s picture

afaik, path_access should be able to do that.

podsnap’s picture

Thanks for the reply WorldFallz.

I thought so too but for the life of me I can't see how and it doesn't seem to claim to be able to on it's page. It just lets you view or not view a page according to path.

Anyone? I'm really stuck here.

WorldFallz’s picture

I dont have it installed anywhere to take a look, but check the issue queue-- there's an issue that talks about how it's done.

podsnap’s picture

Thanks again WorldFallz. Unfortuantely this fix seems to just add the limited editing while keeping the limited viewing.

I want to be able to see everything but limit the editing.

So frustrating.

WorldFallz’s picture

I could swear it was just a matter of getting the proper paths set, but as I said, I don't have access to where I used it previously to check it out.

If path_access doesn't do it then you're probably looking at implementing hook_menu_alter in a module. Or, rethink how you want to handle access control so it's not based on path (which strikes me as a kludge in the first place).

podsnap’s picture

Thanks WorldFallz. Unfortuantely I'm not good enough to be able to go any further than switching on a module!

I can understand why you think it might be a kludge but with lots of different content types and pages it would just make it very easy to restrict by path.

Anyone?