mirror of
https://github.com/haiwen/seahub.git
synced 2025-04-28 03:10:45 +00:00
Fixed bug in sharing org repo to user
This commit is contained in:
parent
704d717f82
commit
f5ffb3890a
@ -641,7 +641,8 @@ def org_repo_share(request, url_prefix):
|
||||
seafserv_threaded_rpc.add_share(repo_id, from_email, share_to,
|
||||
permission)
|
||||
msg = _(u'Shared to %(share_to)s successfully,you can go check it at <a href="%(share)s">Share</a>.') % \
|
||||
(share_to, reverse('org_shareadmin', args=[org.url_prefix]))
|
||||
{"share_to":share_to,
|
||||
"share": reverse('org_shareadmin', args=[org.url_prefix])}
|
||||
messages.add_message(request, messages.INFO, msg)
|
||||
except SearpcError, e:
|
||||
msg = _(u'Failed to share to %s.') % share_to
|
||||
|
Loading…
Reference in New Issue
Block a user