From 42d14ee1d66d04e5f6a23433fe3e891f8173bf5c Mon Sep 17 00:00:00 2001 From: ibuler Date: Sun, 28 Dec 2014 00:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index eecc38f4d..b687e864d 100755 --- a/connect.py +++ b/connect.py @@ -201,7 +201,7 @@ def get_connect_item(username, ip): perms = asset.permission_set.all() perm = perms[0] - if perm.perm_user_type == 'S': + if perm.role == 'SU': return asset.username_super, cryptor.decrypt(asset.password_super), ip, port else: return asset.username_common, cryptor.decrypt(asset.password_common), ip, port