1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00

Fixed typo

This commit is contained in:
zhengxie
2013-08-05 16:57:09 +08:00
parent 2b0c10aed5
commit b19000b0de

View File

@@ -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: