mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 23:02:26 +00:00
fixed mv/cp bug for encrypted repo
This commit is contained in:
@@ -177,7 +177,11 @@ def render_repo(request, repo):
|
|||||||
domain = RequestSite(request).domain
|
domain = RequestSite(request).domain
|
||||||
|
|
||||||
contacts = Contact.objects.get_contacts_by_user(username)
|
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)
|
head_commit = get_commit(repo.head_cmmt_id)
|
||||||
if not head_commit:
|
if not head_commit:
|
||||||
|
Reference in New Issue
Block a user