From b19000b0decd5a02d0e1acd8da380afa6023544c Mon Sep 17 00:00:00 2001 From: zhengxie Date: Mon, 5 Aug 2013 16:57:09 +0800 Subject: [PATCH] Fixed typo --- seahub/views/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/views/file.py b/seahub/views/file.py index a733fd34c7..82c49fc5c7 100644 --- a/seahub/views/file.py +++ b/seahub/views/file.py @@ -748,7 +748,7 @@ def file_edit_submit(request, repo_id): if not repo: return error_json(_(u'The library does not exist.')) if repo.encrypted: - repo.password_set = seafile_api.is_passwd_set(repo_id, username) + repo.password_set = seafile_api.is_password_set(repo_id, username) if not repo.password_set: return error_json(_(u'The library is encrypted.'), 'decrypt') @@ -846,7 +846,7 @@ def file_edit(request, repo_id): file_encoding_list = FILE_ENCODING_LIST if filetype == TEXT or filetype == MARKDOWN or filetype == SF: if repo.encrypted: - repo.password_set = seafile_api.is_passwd_set(repo_id, request.user.username) + repo.password_set = seafile_api.is_password_set(repo_id, request.user.username) if not repo.password_set: op = 'decrypt' if not op: