User Role & Capabilities
I think it's time to improve the capabiltiies control for this plugin. Let's keep it pretty simple for now - just regsiter custom capabilities and map meta capabilties as one might expect:
Administrator - access to everything Editor - everything except Settings Author - can publish and manage their own posts Contributor - can write and manage their own posts but not publish
https://developer.wordpress.org/plugins/users/roles-and-capabilities/ http://justintadlock.com/archives/2010/07/10/meta-capabilities-for-custom-post-types
Can you explain this feature … I mean how you want it to work within the plugin …
No need for any UI in the plugin for this, it's just a matter of mapping the capabiltiies in the code. That way it will behave as users expect (same capabitilies as normal posts/pages in WP) and if user wants to customise the roles or users with access to various capabilties he can do so with User Role Editor plugin or similar.
The issue is that at the moment everything in our plugin is bundled under one capability - manage_options (I think?) so we have people who want to give Editor or Contributor just access to manage articles let's say, but not settings... currently can't be done. Does that help clarify?