|Version 2 (modified by jiangxin, 8 years ago) (diff)|
Patch for new subversion svn_authz format
Trac can apply access control for souce code browser through authz_file option. Yet svn_authz support is quite obsolete.
- do not support [aliases] section;
- do not support $anonymous and $authenticated;
- if multiple rules matched in one section, the maximum rights is returned. But it is not the case in Trac.
This patch add aliases support, and fix a certain bugs of svn_authz support in Trac.
I alos add DocTest for svn_authz.py.
If you have any issues, create a new ticket.
Download the zipped source from [download:svnauthzpatch here].
To apply access control for subversion source browser, add the following lines in your trac.ini
[trac] authz_file = /path/to/svn.access ## authz_module_name can be omited, if no reposname ## add in section name in authz_file. authz_module_name = reposname