[wp-trac] [WordPress Trac] #10201: Switch roles to use single role, and no user-specific caps
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 30 23:51:50 UTC 2010
#10201: Switch roles to use single role, and no user-specific caps
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 3.1
Component: Role/Capability | Version: 2.8
Severity: normal | Keywords: early
-------------------------------+--------------------------------------------
Changes (by mikeschinkel):
* cc: mikeschinkel@… (added)
Comment:
Why not store both roles and user capabilities on a per user basis but use
the roles to define the user both with the user and when the role is
updated?
The user's capabilities per role could be stored in options and the user's
roles could be stored in usermeta. When changing a role's user
capabilities you could lookup all users with the changed role, recalculate
and then update their capabilities? This could be done asynchronously if
need be via a one-time scheduled task.
Would this not work to maintain the ease of admin of multiple roles per
user but make the user's capabilities more performant?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10201#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list