Modify

Opened 22 months ago

Last modified 11 months ago

#10531 new enhancement

Add CHILDTICKETS_ADMIN permission

Reported by: sto Owned by: walnut
Priority: normal Component: ChildTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

I've patched your plugin to include a new admin permission different than TRAC_ADMIN; I've done it because I want some users to be project managers and be able to customize the trac projects (i.e., adjust the settings of this plugin) but don't want to give them TRAC_ADMIN permission.

Attachments (2)

childticketsplugin-admin_perm.patch (1.8 KB) - added by sto 22 months ago.
CHILDTICKETS_ADMIN patch
childticketsplugin-ticket_admin_perm.patch (1.8 KB) - added by sto 22 months ago.
Add TICKET_ADMIN permission patch

Download all attachments as: .zip

Change History (8)

Changed 22 months ago by sto

CHILDTICKETS_ADMIN patch

comment:1 follow-up: Changed 22 months ago by rjollos

Why not just use TICKET_ADMIN?

comment:2 in reply to: ↑ 1 Changed 22 months ago by sto

Replying to rjollos:

Why not just use TICKET_ADMIN?

Because I did it too fast, you are absolutely right, TICKET_ADMIN is the right permission to use.

I'll upload a new patch.

Changed 22 months ago by sto

Add TICKET_ADMIN permission patch

comment:3 Changed 21 months ago by rjollos

+1 for this change. I think the approach of allowing users with TICKET_ADMIN to access the panel makes sense, since TICKET_ADMIN grants access to the other ticket admin panels.

comment:4 follow-up: Changed 11 months ago by jaredbownds

Where does one apply this patch?

comment:5 Changed 11 months ago by rjollos

Btw, the patch is okay, except that you don't need to implement (and shouldn't implement) the IPermissionRequestor interface.

walnut: any chance to apply this soon?

comment:6 in reply to: ↑ 4 Changed 11 months ago by rjollos

Replying to jaredbownds:

Where does one apply this patch?

You'll need to checkout the source code from SVN svn co http://trac-hacks.org/svn/childticketsplugin/0.12 childticket-0.12, cd childticket-0.12, apply the patch using patch -p1 < childticketsplugin-ticket_admin_perm.patch and then re-install the plugin: python setup.py install.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.