diff options
author | 2014-06-28 14:49:34 +0200 | |
---|---|---|
committer | 2014-06-28 20:21:03 +0200 | |
commit | 6abc3221c9b5ba1a1b54633c8283c7c5c978558a (patch) | |
tree | b98bb58c4e10bc6638cebfc2fb1327ca71adb797 /module/Api.py | |
parent | Update CherryPy wsgiserver to version 3.2.1 (diff) | |
download | pyload-6abc3221c9b5ba1a1b54633c8283c7c5c978558a.tar.xz |
[GUI] Removed
Diffstat (limited to 'module/Api.py')
-rw-r--r-- | module/Api.py | 6 |
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 |