[wp-trac] Re: [WordPress Trac] #5942: Add Owner role
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 27 00:31:02 GMT 2008
#5942: Add Owner role
-------------------------+--------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment (by tellyworth):
Just a quick note in response to questions elsewhere.
This could be implemented by storing the owner's user_id in an option. My
reasons for using a role instead are:
1. In conjunction with the user_role table in #5540, it becomes very easy
to find the owner of a blog, or all blogs owned by a specific user in an
MU install. Just a simple lookup or join on the user_role table "WHERE
role='owner'".
2. Because it's a role it's easy to do a current_user_can() check.
--
Ticket URL: <http://trac.wordpress.org/ticket/5942#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list