Changeset 3184

Show
Ignore:
Timestamp:
02/06/08 03:53:19 (1 year ago)
Author:
Chriki
Message:

fix for bug #2526

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • restrictedareaplugin/0.10/restrictedarea/filter.py

    r1928 r3184  
    2727                # at least in Trac 0.10.2 req.perm seems to be always None ... 
    2828                raise TracError("To use the RestrictedAreaPlugin you need at least Trac 0.10.3.") 
    29             if req.path_info.startswith(path) and not req.perm.has_permission(self.__action_name): 
     29            if (req.path_info == path or req.path_info.startswith(path + '/')) and not req.perm.has_permission(self.__action_name): 
    3030                raise HTTPForbidden(to_unicode(PermissionError(self.__action_name))) 
    3131        return handler 
  • restrictedareaplugin/0.10/setup.py

    r1924 r3184  
    66setup( 
    77    name = 'TracRestrictedArea', 
    8     version = '1.0.0', 
     8    version = '1.0.1', 
    99    packages = ['restrictedarea'], 
    1010