1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

Bugfix creating a public share set_inner_pub_repo does not exist in SeafileAPI

This commit is contained in:
Josh Marshall
2015-04-20 23:42:24 +10:00
parent 7528936ef8
commit e06704f32c

View File

@@ -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)