web/views/staticcontrollers.py
branchstable
changeset 9234 ce504d23edf7
parent 9233 7d3316bfa4ff
child 9497 7310738fafe5
--- a/web/views/staticcontrollers.py	Thu Sep 19 18:03:09 2013 +0200
+++ b/web/views/staticcontrollers.py	Thu Sep 19 18:11:12 2013 +0200
@@ -31,7 +31,7 @@
 from datetime import datetime, timedelta
 from logging import getLogger
 
-from cubicweb import Unauthorized
+from cubicweb import Forbidden
 from cubicweb.web import NotFound
 from cubicweb.web.http_headers import generateDateTime
 from cubicweb.web.controller import Controller
@@ -59,7 +59,7 @@
         if osp.isdir(path):
             if self.directory_listing_allowed:
                 return u''
-            raise Unauthorized(path)
+            raise Forbidden(path)
         if not osp.isfile(path):
             raise NotFound()
         if not debugmode: