From 6abc3221c9b5ba1a1b54633c8283c7c5c978558a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 28 Jun 2014 14:49:34 +0200 Subject: [GUI] Removed --- module/Api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/Api.py') 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 -- cgit v1.2.3