1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

[repo history] snapshot label: modification

This commit is contained in:
llj
2017-07-28 16:34:35 +08:00
parent 11ddefb508
commit 8a2df2ef04

View File

@@ -540,7 +540,7 @@ def repo_history(request, repo_id):
c.show = False if new_merge_with_no_conflict(c) else True
show_label = False
if ENABLE_REPO_SNAPSHOT_LABEL and user_perm == 'rw':
if ENABLE_REPO_SNAPSHOT_LABEL:
show_label = True
snapshot_labels = RevisionTags.objects.get_all_tags_by_repo(repo_id)
for c in commits: