Do not specify cascade=True in deactivate_user_backend.

This was mistakenly included from a previous iteration of the do_deactivate()
function's interface.

(imported from commit 0a6ddc5ba1dfe944f2cc0087c590046da6a73531)
This commit is contained in:
Luke Faraone 2013-07-08 15:25:49 -07:00
parent 7540ad6234
commit cfe9e268f4
1 changed files with 1 additions and 1 deletions

View File

@ -1962,7 +1962,7 @@ def deactivate_user_backend(request, user_profile, email):
if target.bot_owner != user_profile and not user_profile.has_perm('administer', user_profile.realm): if target.bot_owner != user_profile and not user_profile.has_perm('administer', user_profile.realm):
return json_error('Insufficient permission') return json_error('Insufficient permission')
do_deactivate(target, cascade=True) do_deactivate(target)
return json_success({}) return json_success({})
@authenticated_json_post_view @authenticated_json_post_view