[wp-trac] Re: [WordPress Trac] #2787: New Method of storing and
calculating cap2user and user2cap
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 14 19:35:33 GMT 2006
#2787: New Method of storing and calculating cap2user and user2cap
----------------------------+-----------------------------------------------
Id: 2787 | Status: assigned
Component: Administration | Modified: Wed Jun 14 19:35:32 2006
Severity: normal | Milestone: 2.2
Priority: normal | Version: 2.1
Owner: markjaquith | Reporter: markjaquith
----------------------------+-----------------------------------------------
Comment (by markjaquith):
As much as I want this, I agree with 2.2 milestone. Convoluted? No, it's
simplicity! simple user2cap relationship table. If you want convolution,
you'd stick capabilities and roles into a serialized usermeta array so
that cap2user requires unserializing each user's cap/role array, figuring
out which are roles and which are capabilities, mapping capabilities from
the roles to the capabilities that the role has, and then searching each
user's capabilities array (at a huge memory cost) to see who has the
specified capability. You know, like we're currently doing. :-)
--
Ticket URL: <http://trac.wordpress.org/ticket/2787>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list