Edgewall Software

Ticket #8289: svn_authz_svn13.patch

File svn_authz_svn13.patch, 692 bytes (added by alvaro.iradier@…, 17 years ago)

Patch to svn_auth.py to understand new svn 1.3 tokens $anonymous and $authenticated (same as previous, in uniffied diff)

  • trac/versioncontrol/svn_authz.py

     
    148148        if not self.conf_authz.has_section(section):
    149149            return
    150150
    151         yield self._get_permission(section, self.auth_name)
     151 
     152        if self.auth_name == 'anonymous':
     153            yield self._get_permission(section, '$anonymous')
     154        else:
     155            yield self._get_permission(section, '$authenticated')
     156            yield self._get_permission(section, self.auth_name)
    152157
    153158        group_perm = None
    154159        for g in self.groups: