summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
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