Changeset 4995 for trunk/includes/forums/capabilities.php
- Timestamp:
- 06/23/2013 06:37:22 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/forums/capabilities.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/capabilities.php
r4835 r4995 78 78 79 79 // Post is public 80 if ( bbp_get_public_status_id() == $_post->post_status ) {80 if ( bbp_get_public_status_id() === $_post->post_status ) { 81 81 $caps = array( 'spectate' ); 82 82 83 83 // User is author so allow read 84 } elseif ( (int) $user_id == (int) $_post->post_author ) {84 } elseif ( (int) $user_id === (int) $_post->post_author ) { 85 85 $caps = array( 'spectate' ); 86 86 … … 138 138 139 139 // User is author so allow edit 140 } elseif ( (int) $user_id == (int) $_post->post_author ) {140 } elseif ( (int) $user_id === (int) $_post->post_author ) { 141 141 $caps[] = $post_type->cap->edit_posts; 142 142 … … 167 167 168 168 // User is author so allow to delete 169 } elseif ( (int) $user_id == (int) $_post->post_author ) {169 } elseif ( (int) $user_id === (int) $_post->post_author ) { 170 170 $caps[] = $post_type->cap->delete_posts; 171 171
Note: See TracChangeset
for help on using the changeset viewer.