95 | | |
96 | | # Very fine grain access: |
97 | | [repository:test_repo@*/source:/@*] |
98 | | anonymous = BROWSER_VIEW |
99 | | |
100 | | [repository:test_repo@*/source:trunk@*] |
101 | | anonymous = BROWSER_VIEW |
102 | | |
103 | | [repository:test_repo@*/source:trunk/src@*] |
104 | | anonymous = BROWSER_VIEW |
105 | | |
106 | | [repository:test_repo@*/source:trunk/src/*@*] |
107 | | anonymous = BROWSER_VIEW, FILE_VIEW |
108 | | |
109 | | [repository:test_repo@*] |
110 | | anonymous = CHANGESET_VIEW |
111 | | |
112 | | }}} |
113 | | |
114 | | Then: |
115 | | - All versions/files of test_repo will be viewable by john |
116 | | - All versions/files of all repositories will be viewable by jack |
117 | | - anonymous will only have FILE_VIEW on files within the test_repo repository at the exact location: trunk/src/ |
118 | | - anonymous will also have CHANGESET_VIEW for the test_repo repository (see following note) |
119 | | |
120 | | Note: It is important to know that the order in which you configure permissions must be maintained. If we were to add the CHANGESET_VIEW permissions for anonymous before declaring the other permissions, you would find the user anonymous would only have CHANGESET_VIEW permissions for test_repo, and nothing else. |
| 96 | # John has BROWSER_VIEW and FILE_VIEW for all repositories |
| 97 | }}} |
| 98 | |
| 99 | Very fine grain repository access: |
| 100 | {{{ |
| 101 | # John has BROWSER_VIEW and FILE_VIEW access to trunk/src/some/location/ only |
| 102 | [repository:test_repo@*/source:trunk/src/some/location/*@*] |
| 103 | john = BROWSER_VIEW, FILE_VIEW |
| 104 | |
| 105 | |
| 106 | # John has BROWSER_VIEW and FILE_VIEW access to only revision 1 of all files at trunk/src/some/location only |
| 107 | [repository:test_repo@*/source:trunk/src/some/location/*@1] |
| 108 | john = BROWSER_VIEW, FILE_VIEW |
| 109 | |
| 110 | |
| 111 | # John has BROWSER_VIEW and FILE_VIEW access to all revisions of 'somefile' at trunk/src/some/location only |
| 112 | [repository:test_repo@*/source:trunk/src/some/location/somefile@*] |
| 113 | john = BROWSER_VIEW, FILE_VIEW |
| 114 | |
| 115 | |
| 116 | # John has BROWSER_VIEW and FILE_VIEW access to only revision 1 of 'somefile' at trunk/src/some/location only |
| 117 | [repository:test_repo@*/source:trunk/src/some/location/somefile@1] |
| 118 | john = BROWSER_VIEW, FILE_VIEW |
| 119 | }}} |
| 120 | |
| 121 | Note: In order for Timeline to work/visible for John, we must add CHANGESET_VIEW to the above permission list. |