Changeset 4995 for trunk/includes/topics/capabilities.php
- Timestamp:
- 06/23/2013 06:37:22 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/topics/capabilities.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/topics/capabilities.php
r4835 r4995 85 85 86 86 // Post is public 87 if ( bbp_get_public_status_id() == $_post->post_status ) {87 if ( bbp_get_public_status_id() === $_post->post_status ) { 88 88 $caps = array( 'spectate' ); 89 89 90 90 // User is author so allow read 91 } elseif ( (int) $user_id == (int) $_post->post_author ) {91 } elseif ( (int) $user_id === (int) $_post->post_author ) { 92 92 $caps = array( 'spectate' ); 93 93 … … 145 145 146 146 // User is author so allow edit 147 } elseif ( (int) $user_id == (int) $_post->post_author ) {147 } elseif ( (int) $user_id === (int) $_post->post_author ) { 148 148 $caps[] = $post_type->cap->edit_posts; 149 149
Note: See TracChangeset
for help on using the changeset viewer.