Changeset 3504 for branches/plugin/bbp-includes/bbp-user-template.php
- Timestamp:
- 09/10/2011 07:30:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-user-template.php
r3485 r3504 1155 1155 * @uses is_user_logged_in() 1156 1156 * @uses bbp_allow_anonymous() 1157 * @uses bbp_is_user_active() 1157 1158 * @uses current_user_can() 1158 1159 * @uses apply_filters() … … 1174 1175 1175 1176 // User is logged in 1176 elseif ( !bbp_is_user_spammer() && !bbp_is_user_deleted() && current_user_can( 'publish_topics' ) )1177 elseif ( bbp_is_user_active() && current_user_can( 'publish_topics' ) ) 1177 1178 $retval = true; 1178 1179 … … 1189 1190 * @uses is_user_logged_in() 1190 1191 * @uses bbp_allow_anonymous() 1192 * @uses bbp_is_user_active() 1191 1193 * @uses current_user_can() 1192 1194 * @uses apply_filters() … … 1208 1210 1209 1211 // User is logged in 1210 elseif ( !bbp_is_user_spammer() && !bbp_is_user_deleted() && current_user_can( 'publish_replies' ) )1212 elseif ( bbp_is_user_active() && current_user_can( 'publish_replies' ) ) 1211 1213 $retval = true; 1212 1214 … … 1288 1290 1289 1291 // Looking at a single forum & forum is open 1290 if ( ( bbp_is_single_forum() || is_page() || is_single() ) && bbp_is_forum_open() ) {1292 if ( ( bbp_is_single_forum() || is_page() || is_single() ) && bbp_is_forum_open() ) 1291 1293 $retval = bbp_current_user_can_publish_topics(); 1292 1294 1293 1295 // User can edit this topic 1294 } elseif ( bbp_is_topic_edit() ) {1296 elseif ( bbp_is_topic_edit() ) 1295 1297 $retval = current_user_can( 'edit_topic', bbp_get_topic_id() ); 1296 }1297 1298 1298 1299 // Allow access to be filtered … … 1323 1324 1324 1325 // Looking at a single topic, topic is open, and forum is open 1325 if ( ( bbp_is_single_topic() || is_page() || is_single() ) && bbp_is_topic_open() && bbp_is_forum_open() ) {1326 if ( ( bbp_is_single_topic() || is_page() || is_single() ) && bbp_is_topic_open() && bbp_is_forum_open() ) 1326 1327 $retval = bbp_current_user_can_publish_replies(); 1327 1328 1328 1329 // User can edit this topic 1329 } elseif ( bbp_is_reply_edit() ) {1330 elseif ( bbp_is_reply_edit() ) 1330 1331 $retval = current_user_can( 'edit_reply', bbp_get_reply_id() ); 1331 }1332 1332 1333 1333 // Allow access to be filtered
Note: See TracChangeset
for help on using the changeset viewer.