From 906bb7c1ecc5c34aa93148894eef763f27eba98e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 12:22:20 +0200 Subject: Other import fixes --- pyload/webui/app/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyload/webui/app/utils.py') diff --git a/pyload/webui/app/utils.py b/pyload/webui/app/utils.py index 695162f91..3526f2615 100644 --- a/pyload/webui/app/utils.py +++ b/pyload/webui/app/utils.py @@ -3,7 +3,7 @@ import os -from bottle import request, HTTPError, redirect, ServerAdapter +import bottle from pyload.Api import has_permission, PERMS, ROLE from pyload.webui import env, THEME @@ -97,16 +97,16 @@ def login_required(perm=None): perms = parse_permissions(s) if perm not in perms or not perms[perm]: if request.headers.get('X-Requested-With') == 'XMLHttpRequest': - return HTTPError(403, "Forbidden") + return bottle.HTTPError(403, "Forbidden") else: - return redirect("/nopermission") + return bottle.redirect("/nopermission") return func(*args, **kwargs) else: if request.headers.get('X-Requested-With') == 'XMLHttpRequest': - return HTTPError(403, "Forbidden") + return bottle.HTTPError(403, "Forbidden") else: - return redirect("/login") + return bottle.redirect("/login") return _view -- cgit v1.2.3