Changeset 3450 for trunk/include/functions_user.inc.php
- Timestamp:
- Jun 23, 2009, 11:18:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_user.inc.php
r3445 r3450 1203 1203 * @return bool 1204 1204 */ 1205 function can_manage_comment($action, $comment_author )1205 function can_manage_comment($action, $comment_author_id) 1206 1206 { 1207 1207 if (!in_array($action, array('delete','edit'))) { … … 1209 1209 } 1210 1210 return (is_admin() || 1211 (($GLOBALS['user']['username'] == $comment_author) 1211 (($GLOBALS['user']['id'] == $comment_author_id) 1212 && !is_a_guest() 1212 1213 && $GLOBALS['conf'][sprintf('user_can_%s_comment', $action)])); 1213 1214 }
Note: See TracChangeset
for help on using the changeset viewer.