1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

fixed mv/cp bug for encrypted repo

This commit is contained in:
llj
2013-08-03 14:19:31 +08:00
parent 36f30653c2
commit 70eff3be40

View File

@@ -177,7 +177,11 @@ def render_repo(request, repo):
domain = RequestSite(request).domain
contacts = Contact.objects.get_contacts_by_user(username)
accessible_repos = [repo] if repo.encrypted else get_unencry_rw_repos_by_user(username)
if repo.encrypted:
repo.props.has_subdir = True
accessible_repos = [repo]
else:
accessible_repos = get_unencry_rw_repos_by_user(username)
head_commit = get_commit(repo.head_cmmt_id)
if not head_commit: