Skip to content

Commit 0b0e471

Browse files
authored
Fix org smart link (#7416)
* Update file.py * Update file.py
1 parent cccd3a4 commit 0b0e471

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seahub/views/file.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,8 @@ def convert_repo_path_when_can_not_view_file(request, repo_id, path):
494494

495495
path = normalize_file_path(path)
496496
username = request.user.username
497-
converted_repo_path = seafile_api.convert_repo_path(repo_id, path, username)
497+
is_org = is_org_context(request)
498+
converted_repo_path = seafile_api.convert_repo_path(repo_id, path, username, is_org)
498499
if not converted_repo_path:
499500
return render_permission_error(request, _('Unable to view file'))
500501

0 commit comments

Comments
 (0)