Making WordPress.org


Ignore:
Timestamp:
07/20/2018 09:02:49 PM (7 years ago)
Author:
coreymckrill
Message:

WordCamp Payments: Update access to budget tools

This makes parts of the budget tools available to other users besides Admins
on a WordCamp site.

Authors and Editors can:

  • View the preliminary and working budgets, but cannot save changes or submit for review.
  • Create sponsor invoices, reimbursement requests, and vendor payment requests, but cannot view/change items of these types that were created by other users.

Admins still have all the same capabilities as before, and do not have the
restrictions detailed above that Authors and Editors have.

File:
1 edited

Legend:

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

    r7267 r7488  
    77    const VERSION = '0.1.4';
    88    const PAYMENT_INFO_RETENTION_PERIOD = 7; // days
     9
     10    const VIEWER_CAP = 'publish_posts';
     11    const ADMIN_CAP  = 'manage_options';
    912
    1013    /**
     
    114117            esc_html__( 'WordCamp Budget', 'wordcamporg' ),
    115118            esc_html__( 'Budget',          'wordcamporg' ),
    116             'manage_options',
     119            self::VIEWER_CAP,
    117120            'wordcamp-budget',
    118121            function() { do_action( 'wcb_render_budget_page' ); },
Note: See TracChangeset for help on using the changeset viewer.