[wp-cvs] wordpress/wp-includes functions-post.php,1.14,1.15

Matthew Mullenweg saxmatt at users.sourceforge.net
Thu Nov 18 19:40:38 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22267/wp-includes

Modified Files:
	functions-post.php 
Log Message:
Allow users 9+ to post as other users, minor advanced post reorg.

Index: functions-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-post.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** functions-post.php	15 Oct 2004 16:20:25 -0000	1.14
--- functions-post.php	18 Nov 2004 19:40:36 -0000	1.15
***************
*** 380,383 ****
--- 380,392 ----
  }
  
+ function user_can_edit_user($user_id, $other_user) {
+ 	$user  = get_userdata($user_id);
+ 	$other = get_userdata($other_user);
+ 	if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID )
+ 		return true;
+ 	else
+ 		return false;
+ }
+ 
  
  function wp_new_comment($commentdata) {




More information about the cvs mailing list