Changes between Version 8 and Version 9 of TicketAccessPlugin
- Timestamp:
- Mar 10, 2015, 7:09:59 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TicketAccessPlugin
v8 v9 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = TicketAccessPlugin =3 = Restrict access rights for tickets based on user's group 4 4 5 == Description ==5 == Description 6 6 7 Restrict access rights for tickets based on user's group. This plugin was modified from the SensitiveTicketsPlugin.7 This plugin restricts the user's access rights for tickets depending on the group the user belongs to. This plugin was modified from the SensitiveTicketsPlugin. 8 8 9 == Bugs/Feature Requests ==9 == Bugs/Feature Requests 10 10 11 11 Existing bugs and feature requests for TicketAccessPlugin are … … 15 15 [http://trac-hacks.org/newticket?component=TicketAccessPlugin&owner=solarwind new ticket]. 16 16 17 == Download ==17 == Download 18 18 19 19 Download the zipped source from [https://sourceforge.net/projects/ticketaccess/files/ here]. 20 20 21 == Source ==21 == Source 22 22 23 23 You can browse TicketAccessPlugin from [svn://svn.code.sf.net/p/ticketaccess/code-0 here] 24 24 25 == Installation == 26 After downloading and installing, you will need to enable it in the trac admin page. 27 You will have to do a database upgrade of your trac. 25 == Installation 28 26 29 Changes are also needed in the trac.ini file 27 After downloading and installing, you will need to enable it in the Trac admin page. 28 You will have to do an upgrade of your Trac database. 30 29 31 Under the trac subsection, please add the permission policy '!TicketAccessPolicy' to the beginning of the permission_policies item 30 Changes are also needed in the `trac.ini` file: 32 31 33 [trac][[br]] 34 ...[[br]] 35 permission_policies = '''!TicketAccessPolicy''', !DefaultPermissionPolicy, !LegacyAttachmentPolicy[[br]] 32 Under the `trac` subsection, please add the permission policy '!TicketAccessPolicy' to the beginning of the permission_policies item: 33 34 {{{ 35 #!ini 36 [trac] 37 permission_policies = '''!TicketAccessPolicy''' 36 38 ... 39 }}} 37 40 38 Thereafter when you create a ticket, there will be new textfield to key in the users you want to restrict from accessing the ticket.41 Thereafter when you create a ticket, there will be a new textfield to key in the users you want to restrict from accessing the ticket. 39 42 40 == Example ==43 == Example 41 44 42 For example I have some users which I have assigned to 3 groups45 For example, suppose there some users which have been assigned to 3 groups: 43 46 44 47 || '''grpA''' || '''grpB''' || '''grpC''' || … … 47 50 48 51 49 A user can belong to more than agroup. In the ticket view, I have created an additional field to enter a comma delimited list of groups I should restrict access to the ticket.52 A user can belong to more than one group. In the ticket view, I have created an additional field to enter a comma delimited list of groups I should restrict access to the ticket. 50 53 51 For example when I am creating a new ticket, I decide that grpA and grpC should be restricted from viewing the ticket. I just enter a comma delimited list of groups I should restrict. This is shown in the image below54 For example when creating a new ticket, I may decide that grpA and grpC should be restricted from viewing the ticket. In that case, just enter a comma delimited list of groups that require access to be restricted: 52 55 53 56 [[Image(create-ticket-view.png)]] … … 55 58 And then the ticket will be hidden from users in these 2 groups. 56 59 57 In our example, only users from grpB (user1 and user3) are allowed to see the ticket. However user1 has already been restricted due to him belonging to grpA, so in effect, only user3 has access to the ticket 60 In our example, only users from grpB (user1 and user3) are allowed to see the ticket. However user1 has already been restricted due to him belonging to grpA, so in effect, only user3 has access to the ticket. 58 61 59 Note that if a user has TRAC_ADMIN permissions then he will be allowed full access regardless of the restrictions imposed by the plugin 62 Note that if a user has TRAC_ADMIN permissions then he will be allowed full access regardless of the restrictions imposed by the plugin. 60 63 61 62 == Author/Contributors == 64 == Author/Contributors 63 65 64 66 '''Author:''' [wiki:solarwind75] [[BR]] 65 '''Maintainer:''' [ wiki:solarwind75] [[BR]]67 '''Maintainer:''' [[Maintainer]] [[BR]] 66 68 '''Contributors:'''