[wp-trac] [WordPress Trac] #10201: Remove user-specific caps

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 24 18:40:28 UTC 2011


#10201: Remove user-specific caps
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:
     Type:  enhancement        |      Status:  assigned
 Priority:  normal             |   Milestone:  Future Release
Component:  Role/Capability    |     Version:  2.8
 Severity:  normal             |  Resolution:
 Keywords:  early              |
-------------------------------+-----------------------------

Comment (by apljdi):

 Replying to [comment:61 ryan_b]:
 > what if instead of doing away with user specific capabilities, we did
 away with roles.  I mean since when does it make sense to link a user to
 an arbitrary grouping (ie role) that just links to the actual
 capabilities.

 Convenience. You don't want to manually assign 5-20 capabilities to every
 user on a case by case basis. You only want to tweak the capabilities.
 This seems to be much the reason you yourself give.

 > ... the scheme would be like this:
 >
 > ID (pk) = 1[[BR]]
 > User ID = 1[[BR]]
 > Capability = manage_options
 >
 > ect... this can be done either way, select * from usercaps where User ID
 = 1 and Capability = manage_options to see if the user has the cap, select
 UserID from usercaps where Capability = manage_options to see who has
 manage_options, or select Capability from usercaps where User ID = 1 to
 see what caps user 1 has.

 Close to what I had imagined.

 > Now what about the general user, we want to keep simple things simple
 while remaining flexible is the key, you we will still have something
 called roles, it will be much like a template of capabilities to give the
 user, the net effect cleanner in the db, keeps the simple role system for
 the general user, but it's flexible for those power users.

 Again, close to what I had imagined but I don't see in what way you are
 doing away with roles. You are making roles secondary to capabilities,
 with roles being a convenient way to group capabilities, as I was arguing.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10201#comment:69>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list