Making WordPress.org

Changeset 372


Ignore:
Timestamp:
02/04/2014 10:08:20 PM (11 years ago)
Author:
nacin
Message:

Trac: Define bug gardeners by a more specific permission.

Location:
sites/trunk/trac.wordpress.org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/conf/notifications.ini

    r292 r372  
    11[blackmagic]
    2 cc.hide = true
     2cc.disable = true
    33
    44[components]
  • sites/trunk/trac.wordpress.org/conf/workflow-core.ini

    r292 r372  
    1414assign = new -> assigned
    1515assign.operations = set_owner
    16 assign.permissions = TICKET_ADMIN
     16assign.permissions = TICKET_EDIT_DESCRIPTION
    1717assign.default = -10
    1818
    1919reassign = assigned,accepted,reopened -> assigned
    2020reassign.operations = set_owner
    21 reassign.permissions = TICKET_ADMIN
     21reassign.permissions = TICKET_EDIT_DESCRIPTION
    2222reassign.default = -10
    2323
    2424accept = new,reviewing,assigned,accepted,reopened -> accepted
    2525accept.operations = set_owner_to_self
    26 accept.permissions = TICKET_ADMIN
     26accept.permissions = TICKET_EDIT_DESCRIPTION
    2727accept.default = -11
    2828
    2929review = new,assigned,reopened -> reviewing
    3030review.operations = set_owner
    31 review.permissions = TICKET_ADMIN
     31review.permissions = TICKET_EDIT_DESCRIPTION
    3232review.default = -12
    3333
     
    3535reassign_reviewing.name = reassign review
    3636reassign_reviewing.operations = set_owner
    37 reassign_reviewing.permissions = TICKET_ADMIN
     37reassign_reviewing.permissions = TICKET_EDIT_DESCRIPTION
    3838reassign_reviewing.default = -12
    3939
     
    5858fix.name = close
    5959fix.operations = set_resolution
    60 fix.permissions = TICKET_ADMIN
     60fix.permissions = TICKET_EDIT_DESCRIPTION
    6161fix.set_resolution = fixed
    6262fix.default = -23
     
    7575change_resolution.name = change the resolution, set
    7676change_resolution.operations = set_resolution
    77 change_resolution.permissions = TICKET_ADMIN
     77change_resolution.permissions = TICKET_EDIT_DESCRIPTION
    7878change_resolution.default = -31
    7979
     
    8181change_to_duplicate.name = mark as duplicate of #
    8282change_to_duplicate.operations = set_duplicate
    83 change_to_duplicate.permissions = TICKET_ADMIN
     83change_to_duplicate.permissions = TICKET_EDIT_DESCRIPTION
    8484change_to_duplicate.default = -32
  • sites/trunk/trac.wordpress.org/templates/site.html

    r369 r372  
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = '//make.wordpress.org/core/'
     10    is_bug_gardener = 'TICKET_EDIT_DESCRIPTION' in perm(resource)
    1011
    1112    if project_slug == 'core':
     
    5960            fields_map[ fields[i]['name'] ] = i
    6061?>
    61 
    62 <script type="text/javascript" charset="utf-8" src="/chrome/common/js/jquery.js"></script>
    6362
    6463<!--! styles and such -->
     
    166165
    167166    <!--! force non-gardeners to preview before posting -->
    168     <py:if test="not ( 'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource) ) and not 'preview' in req.args">
     167    <py:if test="not is_bug_gardener and not 'preview' in req.args">
    169168        <py:match path="form[@id='propertyform']/div[@class='buttons']" once="true">
    170169            <div py:attrs="select('@*')">
     
    204203
    205204<!--! Remove 'Replace existing attachment of the same name' checkbox for non-gardeners -->
    206 <py:if test="not ( 'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource) )">
     205<py:if test="not is_bug_gardener">
    207206    <py:match path="form[@id='attachment']//div[@class='options']" py:strip="" />
    208207</py:if>
     
    293292    <xi:include href="wporg-footer.html" />
    294293
    295     <script py:if="'TICKET_ADMIN' in perm(resource) or 'Bug Gardener' in perm(resource)">
     294    <script py:if="is_bug_gardener">
    296295    var wpBugGardener = true;
    297296    </script>
Note: See TracChangeset for help on using the changeset viewer.