1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

rm shared in repo when delete an user

This commit is contained in:
lian
2017-01-09 18:08:39 +08:00
parent fc680148e5
commit 720bf570cb
2 changed files with 26 additions and 12 deletions

View File

@@ -711,11 +711,6 @@ def user_remove(request, email):
messages.error(request, _(u'Failed to delete: the user is an organization creator'))
return HttpResponseRedirect(next)
org_id = org[0].org_id
org_user_repos = seafile_api.get_org_owned_repo_list(org_id, user.email)
for repo in org_user_repos:
seafile_api.remove_repo(repo.id)
user.delete()
messages.success(request, _(u'Successfully deleted %s') % user.username)
except User.DoesNotExist: