mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +00:00
Bugfix creating a public share set_inner_pub_repo does not exist in SeafileAPI
This commit is contained in:
@@ -2545,7 +2545,7 @@ class SharedRepo(APIView):
|
|||||||
elif share_type == 'public':
|
elif share_type == 'public':
|
||||||
if not CLOUD_MODE:
|
if not CLOUD_MODE:
|
||||||
try:
|
try:
|
||||||
seafile_api.set_inner_pub_repo(repo_id, permission)
|
seafile_api.add_inner_pub_repo(repo_id, permission)
|
||||||
except SearpcError, e:
|
except SearpcError, e:
|
||||||
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR,
|
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||||
"Searpc Error: " + e.msg)
|
"Searpc Error: " + e.msg)
|
||||||
|
Reference in New Issue
Block a user