Commit Graph

122 Commits

Author SHA1 Message Date
Ryan Boren e165c3394e wp_roles cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@3452 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-18 01:06:11 +00:00
Ryan Boren 44fc04c42e Don't treat a numeric user name as an id.
git-svn-id: https://develop.svn.wordpress.org/trunk@3310 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-15 16:45:20 +00:00
Ryan Boren 5a02ae79af If no user is logged in, setup an empty user.
git-svn-id: https://develop.svn.wordpress.org/trunk@3299 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-13 03:46:40 +00:00
Ryan Boren 73edfc7c20 Add read_post meta cap.
git-svn-id: https://develop.svn.wordpress.org/trunk@3297 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-13 00:54:52 +00:00
Ryan Boren 53271cf5ac role_has_cap and user_has_cap filters from ringmaster. fixes #2005
git-svn-id: https://develop.svn.wordpress.org/trunk@3296 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-12 23:20:44 +00:00
Ryan Boren 3edb82141a Add edit_pages checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@3269 602fd350-edb4-49c9-b593-d223f7449a82
2005-12-05 04:04:23 +00:00
Ryan Boren ba38c0c3c4 Remove ugly whitespace. Props abhay. fixes #1996
git-svn-id: https://develop.svn.wordpress.org/trunk@3250 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-30 21:13:18 +00:00
Ryan Boren 4a4598bbdb add_role() and remove_role() convenience wrappers around
git-svn-id: https://develop.svn.wordpress.org/trunk@3249 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-30 20:04:04 +00:00
Ryan Boren 1dae83d024 Return role object after adding.
git-svn-id: https://develop.svn.wordpress.org/trunk@3242 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-30 07:32:43 +00:00
Ryan Boren 7cec380314 Add get_role() convenience wrapper.
git-svn-id: https://develop.svn.wordpress.org/trunk@3238 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-29 18:47:28 +00:00
Ryan Boren 62f1fd972b Pull the values in WP_User::data directly into WP_User so that we don't have to do ->data->blah.
git-svn-id: https://develop.svn.wordpress.org/trunk@3102 602fd350-edb4-49c9-b593-d223f7449a82
2005-11-16 02:54:23 +00:00
Ryan Boren 24738f1176 Pass along grant state when saving cap. Props Owen. fixes #1702
git-svn-id: https://develop.svn.wordpress.org/trunk@2904 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-22 20:39:37 +00:00
Ryan Boren 1f44c5d3b1 Spiffier role creation code.
git-svn-id: https://develop.svn.wordpress.org/trunk@2898 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-20 23:48:28 +00:00
Ryan Boren 3e618e13be remove_cap() fix from mdawaffe. fixes #1608
git-svn-id: https://develop.svn.wordpress.org/trunk@2851 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-08 20:39:37 +00:00
Ryan Boren 720b7c5d36 Capabilities fixes from the O man. fixes #1561
git-svn-id: https://develop.svn.wordpress.org/trunk@2793 602fd350-edb4-49c9-b593-d223f7449a82
2005-08-20 01:37:41 +00:00
Matt Mullenweg 5880f1a3ad Setting native eol:style
git-svn-id: https://develop.svn.wordpress.org/trunk@2735 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-23 16:16:03 +00:00
Matt Mullenweg c3694be892 Typo was making everyone admins.
git-svn-id: https://develop.svn.wordpress.org/trunk@2734 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-23 16:14:29 +00:00
Ryan Boren 9527e184fe More cap migration.
git-svn-id: https://develop.svn.wordpress.org/trunk@2714 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-15 02:16:45 +00:00
Ryan Boren 235345a916 Move user_can_*() functions to capabilities.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@2713 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-15 01:27:01 +00:00
Ryan Boren 7e94ba45c5 Cap migration.
git-svn-id: https://develop.svn.wordpress.org/trunk@2712 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-15 01:24:08 +00:00
Ryan Boren 6059fcf644 Fix typos in is_role() and get_userdata(). fixes #1509 Props: mdawaffe
git-svn-id: https://develop.svn.wordpress.org/trunk@2711 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-14 22:58:58 +00:00
Ryan Boren 19ab84315c Role/capability system. Round one. Props: Owen Winkler
git-svn-id: https://develop.svn.wordpress.org/trunk@2703 602fd350-edb4-49c9-b593-d223f7449a82
2005-07-11 22:39:50 +00:00