- fix [ 1378871 ] become this user doesn't work

- fix [ 1378909 ] (SVN 300) Unable to add user
 - fix [ 1323184 ] CS Submissions Not Sorting on multiple sites
 - fix [ 1378787 ] Unable to add new group to user
This commit is contained in:
Matthew Wilson 2005-12-13 03:22:55 +00:00
parent 235f2929fd
commit 41bd852e24
2 changed files with 4 additions and 2 deletions

View file

@ -159,8 +159,7 @@ sub getUserSearchForm {
#-------------------------------------------------------------------
sub www_becomeUser {
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(3));
WebGUI::Session::end($session{var}{sessionId});
WebGUI::Session::start($session{form}{uid});
WebGUI::Session::convertVisitorToUser($session{var}{sessionId},$session{form}{uid});
return "";
}