pull/6/head
ibuler 10 years ago
parent 1e78b65cd7
commit 42d14ee1d6

@ -201,7 +201,7 @@ def get_connect_item(username, ip):
perms = asset.permission_set.all() perms = asset.permission_set.all()
perm = perms[0] perm = perms[0]
if perm.perm_user_type == 'S': if perm.role == 'SU':
return asset.username_super, cryptor.decrypt(asset.password_super), ip, port return asset.username_super, cryptor.decrypt(asset.password_super), ip, port
else: else:
return asset.username_common, cryptor.decrypt(asset.password_common), ip, port return asset.username_common, cryptor.decrypt(asset.password_common), ip, port

Loading…
Cancel
Save