Making WordPress.org

Changeset 8164


Ignore:
Timestamp:
01/30/2019 10:53:55 PM (6 years ago)
Author:
coreymckrill
Message:

WordCamp Payments: Ensure super admins can update payment requests

In r8136 the button to save changes to vendor payment and reimbursement
requests was hidden from all users when no documentation files were attached,
but it should have still been available to super admins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php

    r8136 r8164  
    26742674     */
    26752675    public static function can_submit_request( $post ) {
    2676         // A request must have documentation attached before it can be submitted.
    2677         $files = self::get_attached_files( $post );
    2678         if ( empty( $files ) ) {
    2679             return false;
     2676        if ( ! current_user_can( 'manage_network' ) ) {
     2677            // A request must have documentation attached before it can be submitted.
     2678            $files = self::get_attached_files( $post );
     2679            if ( empty( $files ) ) {
     2680                return false;
     2681            }
    26802682        }
    26812683
Note: See TracChangeset for help on using the changeset viewer.