first round of changes for the new session system
This commit is contained in:
parent
da95226072
commit
d4b7f2ce59
128 changed files with 2442 additions and 1478 deletions
|
|
@ -140,7 +140,7 @@ sub www_editProfileSave {
|
|||
foreach $fieldName (keys %{$profile}) {
|
||||
$u->profileField($fieldName,$profile->{$fieldName});
|
||||
}
|
||||
WebGUI::Session::refreshUserInfo($session{user}{userId});
|
||||
$session->user({user=>$u});
|
||||
return WebGUI::Operation::Auth::www_auth();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -218,15 +218,13 @@ sub getUserSearchForm {
|
|||
|
||||
=head2 www_becomeUser ( )
|
||||
|
||||
A wrapper around WebGUI::Session::convertVisitorToUser(), so that you can assume the UID
|
||||
for a different user in the current session. Uses $session{form}{uid} to supply the
|
||||
UID of the user to become.
|
||||
Allows an administrator to assume another user.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_becomeUser {
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(3));
|
||||
WebGUI::Session::convertVisitorToUser($session{var}{sessionId},$session{form}{uid});
|
||||
$session->user({userId=>$session{form}{uid}});
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue