Fix a bug with temporary config files, and opening a new session.
This commit is contained in:
parent
ca9a3bd6c7
commit
f2a9dc29bd
1 changed files with 2 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ use strict;
|
|||
use WebGUI::Asset;
|
||||
use WebGUI::Workflow::Instance;
|
||||
use WebGUI::DateTime;
|
||||
use WebGUI::Session;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
|
@ -222,7 +223,7 @@ sub commitAsUser {
|
|||
return 0 unless (defined $userId);
|
||||
|
||||
#Open a new session
|
||||
my $new_session = WebGUI::Session->open( $config->getFilename );
|
||||
my $new_session = WebGUI::Session->open( $config );
|
||||
#Set the userId in the new session
|
||||
$new_session->user( { userId => $userId } );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue