Thanks for Members, it's a great start to what should be a great plugin. Just checking - Justin, are you using it on live sites? I'll be trying it out over the next few weeks for use in a site. Even though it's in early stages, what's there looks solid - but it'd be good to know how you feel about it being used in production.
My main question / idea is that I'm trying to restrict editing of certain "sections" of a site. That is, only certain users (maybe roles) would gain access to manage particular pages and all their descendants. So, currently you have restrict_content - there might also be restrict_editing, something that applies to admin tasks as opposed to reading. So maybe I could restrict a certain section to certain Editors, who would have all their usual add, edit, delete capabilities, but no capabilities apart from reading for every page that isn't "in" that section. This would probably extend to a lot of things, e.g. they should only be able to create pages as children in that section.
Anyway, I'm working on some code to work with the Members system (maybe a bolt-on new component?), and, being relatively new to the WP permissions system, I'm wondering what's the best approach. It looks to me like map_meta_cap is where it's at for this kind of idea. However, I can't find any information on how this works. I'm piecing it together (slowly!) - I just wondered:
- Do you have any imminent plans for something like this in Members?
- Am I missing something that Members provides that might make hacking this easier?
- Any other pointers for bolting something like this on to Members?