Ok let me then explain some points i think you should consider if you are going to keep working on this plugin as u wrote in agapetry web site, the same where you sold the press permit:
1.- It is suppose to be free source code, so it should be anywhere, as in any platform, ANY kinda documentation, at least a list of functions (name, goal of the function, parameters) It is typical in Java, php,... I think you even erase it in the source code, dont you? just this plugin keep crossing php and query calls through php files and several folders, being really easy to get lost. So i have clear it is impossible to keep in mind every call it is doing. Just read the terms the GPL LICENSE under your plugin is found, just the first line. It is allow to redistribute and modify it. And there it is more than suggest a documentation should appear.
2.- The more we talk, the more i have the feeling that the purpose of this plugin is just to promote te press permit. If i do not bought your press permit, it is because i cannot check if the plugin does what i am looking for. Not even a try or demo. Believe me when i write that 40 bucks is nohing, I'd rather paying than keeping two weeks digging into source code. I do not know if you were looking for beneficts when you released this plugin (before "capitalism" come through).I think it is respectable, but unethical in open source code. I read yesterday again the promotional comment of your plugin and th huge expectation, making possible to deploy 7 or 8 plugins just with your one.
3.- Going bakc to category grant access? So have you ever found the situation you related in any application, program, or just anything in real life? if a have 50 categories in the same level and two users, the first one has access only to 1 category and the second one to the 50 categories, BOTH have the same access because the user 1 has access to ONE category!!!???? So restriction should be wether all categories or noone then!!!! Are the restriction not considered??? Until you dont show me a real example, i keep in my mind, as i think most of people, restrictions are always over permissions. Keep reading please.
4.- HACKING!!!!!?????? easy words to avoid any qualificated help besides the one of how to configure the plug. GPL license again. Let me remind you the problem. Do you really think it is hacking!!?????
Problem: In a custom post type (there were NOT any difference if we were talking abaout post):
- Two users with the role as contributor having permissions to be authors, so as you know in Restrictions->Categories the five levels are restricted for every single category.
After that, in the Roles->Categories in the Author checkbox for each category the user with permission is selected.
Then we have
Cat1 (in the author Custom post type checkbox)
Sub_cat1.1 ---------- User1
Sub_cat1.2 ---------- User1 and User2
Sub_cat1.3 ---------- User1 and User2
Sub_cat2.1 ---------- User1 and User2
Sub_cat2.2 ---------- User1 and User2
So as you know User 1 and User2 have access to the same posts!!!! even when only sub_cat1.1 is checked!!!!!!! UNLOGICAL whatever you said. i cannot believe you agree with it.
Mark each single post to be restricted, selecting the readers and the authors. So if the specific category is selected, readers should be restricted and none allowed to read. Besides authors should be restricted and only the User1 autorized. It can be done via admin and the metaboxes in the add/edit window. Now it is done automatically re-using YOUR function insert-role-restriction. My pain is the lack of documentation. Now to finish i am trying to remove the restrictions saved in the DB.
i am not looking for any argue, just i try to understand why the most powerfurl plugin i am using has a black hole, and instead of keeping improving this, and all your plugins....