Changeset 7649
- Timestamp:
- 09/10/2018 07:36:18 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-subroles.php
r6187 r7649 7 7 8 8 namespace WordCamp\SubRoles; 9 use WordPress_Community\Applications\Meetup_Application; 10 9 11 defined( 'WPINC' ) || die(); 10 12 … … 154 156 } 155 157 } 158 159 if ( Meetup_Application::POST_TYPE === $post_type ) { 160 // Use same permission for meetups as well as wordcamps. 161 // TODO: In future consider changing this to wrangle_events 162 if ( $current_user && $current_user->has_cap( 'wordcamp_wrangle_wordcamps' ) ) { 163 $required_caps[] = 'wordcamp_wrangle_wordcamps'; 164 } 165 } 156 166 break; 157 167 }
Note: See TracChangeset
for help on using the changeset viewer.