Edgewall Software

Changes between Version 29 and Version 30 of TracFineGrainedPermissions


Ignore:
Timestamp:
Apr 13, 2011, 8:56:28 PM (13 years ago)
Author:
m.jason.miller@…
Comment:

Found my permissions not to be accurate… fixing, and cleaning up

Legend:

Unmodified
Added
Removed
Modified
  • TracFineGrainedPermissions

    v29 v30  
    8484 - other pages will be viewable only by john and jack
    8585
    86 Some more examples:
     86Some repository examples (Browse Source specific):
    8787{{{
    8888# A single repository:
    8989[repository:test_repo@*]
    9090john = BROWSER_VIEW, FILE_VIEW
     91# John has BROWSER_VIEW and FILE_VIEW for the entire test_repo
    9192
    9293# All repositories:
    93 [repository:*@*] 
     94[repository:*@*]
    9495jack = BROWSER_VIEW, FILE_VIEW
    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
     99Very 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/*@*]
     103john = 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]
     108john = 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@*]
     113john = 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]
     118john = BROWSER_VIEW, FILE_VIEW
     119}}}
     120
     121Note: In order for Timeline to work/visible for John, we must add CHANGESET_VIEW to the above permission list.
    121122
    122123