Changeset 4995 for trunk/includes/replies/capabilities.php
- Timestamp:
- 06/23/2013 06:37:22 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/replies/capabilities.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/replies/capabilities.php
r4835 r4995 67 67 68 68 // Post is public 69 if ( bbp_get_public_status_id() == $_post->post_status ) {69 if ( bbp_get_public_status_id() === $_post->post_status ) { 70 70 $caps = array( 'spectate' ); 71 71 72 72 // User is author so allow read 73 } elseif ( (int) $user_id == (int) $_post->post_author ) {73 } elseif ( (int) $user_id === (int) $_post->post_author ) { 74 74 $caps = array( 'spectate' ); 75 75 … … 127 127 128 128 // User is author so allow edit 129 } elseif ( (int) $user_id == (int) $_post->post_author ) {129 } elseif ( (int) $user_id === (int) $_post->post_author ) { 130 130 $caps[] = $post_type->cap->edit_posts; 131 131
Note: See TracChangeset
for help on using the changeset viewer.