1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 11:57:34 +00:00

[file lock] show name instead of email

This commit is contained in:
llj
2015-07-15 10:33:17 +08:00
committed by lian
parent 97ebba6f2b
commit 2aa15a7d19
3 changed files with 4 additions and 2 deletions

View File

@@ -508,6 +508,7 @@ def list_lib_dir(request, repo_id):
if is_pro_version():
f_['is_locked'] = True if f.is_locked else False
f_['lock_owner'] = f.lock_owner
f_['lock_owner_name'] = email2nickname(f.lock_owner)
if username == f.lock_owner:
f_['locked_by_me'] = True
else: