| 8 | |
| 9 | For example, suppose there some users which have been assigned to 3 groups: |
| 10 | |
| 11 | || '''grpA''' || '''grpB''' || '''grpC''' || |
| 12 | || user1 || user1 || user4 || |
| 13 | || user2 || user3 || user5 || |
| 14 | |
| 15 | |
| 16 | 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. |
| 17 | |
| 18 | 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: |
| 19 | |
| 20 | [[Image(create-ticket-view.png, border=2)]] |
| 21 | |
| 22 | And then the ticket will be hidden from users in these 2 groups. |
| 23 | |
| 24 | 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. |
| 25 | |
| 26 | Note that if a user has `TRAC_ADMIN` permissions, then this user will be allowed full access, regardless of the restrictions imposed by the plugin. |
45 | | == Example |
46 | | |
47 | | For example, suppose there some users which have been assigned to 3 groups: |
48 | | |
49 | | || '''grpA''' || '''grpB''' || '''grpC''' || |
50 | | || user1 || user1 || user4 || |
51 | | || user2 || user3 || user5 || |
52 | | |
53 | | |
54 | | 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. |
55 | | |
56 | | 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: |
57 | | |
58 | | [[Image(create-ticket-view.png)]] |
59 | | |
60 | | And then the ticket will be hidden from users in these 2 groups. |
61 | | |
62 | | 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. |
63 | | |
64 | | Note that if a user has `TRAC_ADMIN` permissions, then this user will be allowed full access, regardless of the restrictions imposed by the plugin. |
65 | | |