[wp-trac] Re: [WordPress Trac] #5540: User roles overhaul
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 28 05:28:46 GMT 2007
#5540: User roles overhaul
-------------------------+--------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment (by ryan):
Replying to [comment:6 tellyworth]:
> I can see one relatively simple way to handle the query-users-by-cap
thing with this patch: Implement a find_roles_with_capability($cap_name)
function that would return a list of roles with a given capability. Then
query the user_role table where role in(a, b, c).
Yes, but retaining the ability to put caps in user_meta means not all of a
user's caps will be in a role, correct? But maybe that's not worth
worrying about. Such caps are not supported out of the box.
Moving the roles to a separate table, implementing the functions you
mention, and not going out of our way for caps directly associated with a
user (without an intervening role), seems like a good-enough solution that
removes the biggest problems with the current arrangement.
--
Ticket URL: <http://trac.wordpress.org/ticket/5540#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list