summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 14:49:34 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 20:21:03 +0200
commit6abc3221c9b5ba1a1b54633c8283c7c5c978558a (patch)
treeb98bb58c4e10bc6638cebfc2fb1327ca71adb797 /module/Api.py
parentUpdate CherryPy wsgiserver to version 3.2.1 (diff)
downloadpyload-6abc3221c9b5ba1a1b54633c8283c7c5c978558a.tar.xz
[GUI] Removed
Diffstat (limited to 'module/Api.py')
-rw-r--r--module/Api.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/Api.py b/module/Api.py
index 348d9c8ee..ad11105ba 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -923,10 +923,8 @@ class Api(Iface):
"""
if self.core.config["remote"]["nolocalauth"] and remoteip == "127.0.0.1":
return "local"
- if self.core.startedInGui and remoteip == "127.0.0.1":
- return "local"
-
- return self.core.db.checkAuth(username, password)
+ else:
+ return self.core.db.checkAuth(username, password)
def isAuthorized(self, func, userdata):
"""checks if the user is authorized for specific method