[wp-hackers] Looking for the role-capability to set foradd_submenu_page

Philip M. Hofer (Frumph) philip at frumph.net
Fri Aug 27 23:24:50 UTC 2010


Thanks again Nacin, is there any code tricks I can do to stop them from 
having access to the normal posts section?, I kind of want the user to be 
limited to only the post_type I have and only their posts in the post type 
.. if that makes sense..

Let me guess, look at the schema ;/ heh

----- Original Message ----- 
From: "Andrew Nacin" <wp at andrewnacin.com>
To: <wp-hackers at lists.automattic.com>
Sent: Friday, August 27, 2010 4:19 PM
Subject: Re: [wp-hackers] Looking for the role-capability to set 
foradd_submenu_page


> On Fri, Aug 27, 2010 at 7:03 PM, Philip M. Hofer (Frumph) 
> <philip at frumph.net
>> wrote:
>
>> Looking for the role to set for add_submenu_page, if the user is set to
>> 'contributor' i want them to have access to the post-types and do what 
>> they
>> need to do and I verify it and publish it for them.
>>
>> I'm thinking 'edit_posts' ... but i'm just not sure, the
>> http://codex.wordpress.org/Roles_and_Capabilities page really doesn't 
>> sort
>> of explain to (me) what each of the roles abilities (by default) are
>
>
> edit_posts is indeed the only capability that contributors have, that a
> subscriber doesn't. That page is pretty exhaustive, but when in doubt you
> can inspect the database entry that defines roles, or source. Just be
> careful w/ the source because we've added new capabilities over time and
> those are reflected farther down the file. (which is
> wp-admin/includes/schema.php).
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 




More information about the wp-hackers mailing list