Changes between Version 4 and Version 5 of SslAuthenticationPlugin
- Timestamp:
- Jul 1, 2009, 9:54:14 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SslAuthenticationPlugin
v4 v5 18 18 == Example == 19 19 20 Currently a small patch is required to be applied against Trac in order to get this working (this patch is against10.4-2, the -2 represents a Debian package revision):20 For Trac 0.10 only(!), a small patch is currently required to be applied against Trac in order to get this working (this patch is against 0.10.4-2, the -2 represents a Debian package revision): 21 21 {{{ 22 22 #!diff 23 23 diff -Nur /usr/share/python-support/trac/trac/web/main.py /var/lib/python-support/python2.4/trac/web/main.py 24 24 --- /usr/share/python-support/trac/trac/web/main.py 2007-05-30 03:23:40.000000000 +0200 25 +++ /var/lib/python-support/python2.4/trac/web/main.py 200 8-04-26 21:55:45.000000000 +020026 @@ -180,7 +180,1 3@@25 +++ /var/lib/python-support/python2.4/trac/web/main.py 2009-06-01 11:38:45.000000000 +0200 26 @@ -180,7 +180,10 @@ 27 27 if not getattr(chosen_handler, 'anonymous_request', False): 28 28 try: … … 30 30 - req.perm = PermissionCache(self.env, req.authname) 31 31 + try: 32 + if req.perm_user: 33 + req.perm = PermissionCache(self.env, req.perm_user) 34 + else: 35 + req.perm = PermissionCache(self.env, req.authname) 36 + except: 32 + req.perm = PermissionCache(self.env, req.perm_user) 33 + except AttributeError: 37 34 + req.perm = PermissionCache(self.env, req.authname) 38 35 req.session = Session(self.env, req)