1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 20:08:19 +00:00

Fix locale strings

This commit is contained in:
zhengxie
2016-08-03 11:57:25 +08:00
parent f3235d970a
commit 15d082a8c5
5 changed files with 25 additions and 47 deletions

View File

@@ -1585,8 +1585,8 @@ def ajax_repo_change_passwd(request, repo_id):
is_owner = True if username == repo_owner else False
if not is_owner:
return HttpResponse(json.dumps({
'error': _('Faied to change password, you are not owner.')}),
status=400, content_type=content_type)
'error': 'Permission denied'}),
status=403, content_type=content_type)
old_passwd = request.POST.get('old_passwd', '')
new_passwd = request.POST.get('new_passwd', '')