summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-02-20 16:57:01 -0500
committerRob Crittenden <rcritten@redhat.com>2008-02-20 16:57:01 -0500
commit3ede5e42a59338c175b0e6cf17377e4d81c18ff3 (patch)
treeef838d193b1cb63cd0fb820e227b93b7882d84ce
parent4c588b3d5f8e659c93df2ffca4ab65342813b140 (diff)
downloadfreeipa.git-3ede5e42a59338c175b0e6cf17377e4d81c18ff3.tar.gz
freeipa.git-3ede5e42a59338c175b0e6cf17377e4d81c18ff3.tar.xz
freeipa.git-3ede5e42a59338c175b0e6cf17377e4d81c18ff3.zip
Don't clear out the uid from the session until the record has been updated.
-rw-r--r--ipa-server/ipa-gui/ipagui/subcontrollers/user.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-server/ipa-gui/ipagui/subcontrollers/user.py b/ipa-server/ipa-gui/ipagui/subcontrollers/user.py
index 1c34be9c..4c2a758b 100644
--- a/ipa-server/ipa-gui/ipagui/subcontrollers/user.py
+++ b/ipa-server/ipa-gui/ipagui/subcontrollers/user.py
@@ -425,9 +425,6 @@ class UserController(IPAController):
turbogears.flash("Something went wrong. You last viewed %s but are trying to update %s" % (kw.get('uid'), edituid))
raise turbogears.redirect('/user/show', uid=kw.get('uid'))
- # We no longer need this
- cherrypy.session['uid'] = None
-
# Fix incoming multi-valued fields we created for the form
kw = ipahelper.fix_incoming_fields(kw, 'cn', 'cns')
kw = ipahelper.fix_incoming_fields(kw, 'telephonenumber', 'telephonenumbers')
@@ -618,6 +615,9 @@ class UserController(IPAController):
user_groups=user_groups_dicts,
tg_template='ipagui.templates.useredit')
+ # We no longer need this
+ cherrypy.session['uid'] = None
+
turbogears.flash("%s updated!" % kw['uid'])
raise turbogears.redirect('/user/show', uid=kw['uid'])