Making WordPress.org


Ignore:
Timestamp:
04/07/2016 02:25:28 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp Post Type: Use correct capability to allow deputies to transition WordCamp statuses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r2911 r2912  
    727727                if ( ! empty( $post_data['post_status'] ) ) {
    728728                        // Only network admins can change WordCamp statuses.
    729                         if ( ! current_user_can( 'network_admin' ) ) {
     729                        if ( ! current_user_can( 'manage_network' ) ) {
    730730                                $post_data['post_status'] = $post->post_status;
    731731                        }
Note: See TracChangeset for help on using the changeset viewer.