Edgewall Software

Changes between Version 28 and Version 29 of TracFineGrainedPermissions


Ignore:
Timestamp:
Feb 15, 2011, 5:20:40 PM (13 years ago)
Author:
m.jason.miller@…
Comment:

Added additional AuthzSourcePolicy configurations.

Legend:

Unmodified
Added
Removed
Modified
  • TracFineGrainedPermissions

    v28 v29  
    9090john = BROWSER_VIEW, FILE_VIEW
    9191
    92 
    9392# All repositories:
    9493[repository:*@*]
    9594jack = BROWSER_VIEW, FILE_VIEW
     95
     96# Very fine grain access:
     97[repository:test_repo@*/source:/@*]
     98anonymous = BROWSER_VIEW
     99
     100[repository:test_repo@*/source:trunk@*]
     101anonymous = BROWSER_VIEW
     102
     103[repository:test_repo@*/source:trunk/src@*]
     104anonymous = BROWSER_VIEW
     105
     106[repository:test_repo@*/source:trunk/src/*@*]
     107anonymous = BROWSER_VIEW, FILE_VIEW
     108
     109[repository:test_repo@*]
     110anonymous = CHANGESET_VIEW
     111
    96112}}}
    97113
    98114Then:
    99  - All versions of test_repo will be viewable by john
    100  - All versions of all repositories will be viewable by jack
     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
     120Note: 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.
    101121
    102122