Changeset 1928
- Timestamp:
- 02/07/07 03:22:03 (2 years ago)
- Files:
-
- restrictedareaplugin/0.10/restrictedarea/filter.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
restrictedareaplugin/0.10/restrictedarea/filter.py
r1923 r1928 24 24 def pre_process_request(self, req, handler): 25 25 for path in self.paths: 26 if req.perm is None: 27 # at least in Trac 0.10.2 req.perm seems to be always None ... 28 raise TracError("To use the RestrictedAreaPlugin you need at least Trac 0.10.3.") 26 29 if req.path_info.startswith(path) and not req.perm.has_permission(self.__action_name): 27 30 raise HTTPForbidden(to_unicode(PermissionError(self.__action_name)))
