use correct module

This commit is contained in:
Benjamin Golub 2009-09-14 15:43:07 -04:00
parent c59cf2ab06
commit 016dee1e96
1 changed files with 2 additions and 2 deletions

View File

@ -46,12 +46,12 @@ def administrator(method):
if self.request.method == "GET":
self.redirect(self.get_login_url())
return
raise web.HTTPError(403)
raise tornado.web.HTTPError(403)
elif not self.current_user.administrator:
if self.request.method == "GET":
self.redirect("/")
return
raise web.HTTPError(403)
raise tornado.web.HTTPError(403)
else:
return method(self, *args, **kwargs)
return wrapper