Changeset 4016

Show
Ignore:
Timestamp:
07/15/08 15:01:23 (4 months ago)
Author:
osimons
Message:

CustomFieldAdminPlugin: The "Ay's" have it. For 0.11 and future versions the plugin will only require TICKET_ADMIN permission to modify custom fields.

Closes #3275.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • customfieldadminplugin/0.11/customfieldadmin/customfieldadmin.py

    r2652 r4016  
    2323     
    2424    def get_admin_panels(self, req): 
    25         if req.perm.has_permission('TRAC_ADMIN')
     25        if 'TICKET_ADMIN' in req.perm
    2626            yield ('ticket', 'Ticket System', 'customfields', 'Custom Fields')  
    2727 
    2828    def render_admin_panel(self, req, cat, page, customfield): 
    29         #assert req.perm.has_permission('TRAC_ADMIN') 
    30         req.perm.assert_permission('TRAC_ADMIN') 
     29        req.perm.require('TICKET_ADMIN') 
    3130         
    3231        add_script(req, 'customfieldadmin/js/CustomFieldAdminPage_actions.js')