Cap migration.

git-svn-id: https://develop.svn.wordpress.org/trunk@2720 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-07-17 19:29:55 +00:00
parent 21a150eefa
commit 268fc9f7a1
10 changed files with 16 additions and 36 deletions
+1 -3
View File
@@ -3,9 +3,7 @@ $mode = 'sidebar';
require_once('admin.php');
get_currentuserinfo();
if ($user_level == 0)
if ( ! current_user_can('edit_posts') )
die ("Cheatin' uh ?");
if ('b' == $_GET['a']) {