summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-11-24 01:31:19 +0000
committerivan <ivan>2010-11-24 01:31:19 +0000
commite5d92c9d6453dc563fd6066354119c908fd2cf06 (patch)
treea98c7b5e6eaadad40614449a82ef2c0908402c49
parent86b7d0396798925ab99c8f6b399d1800d3ae57cc (diff)
don't attempt to use RT::CurrentUser before RT has been initialized. very weird. RT#10695
-rw-r--r--FS/FS/TicketSystem/RT_Internal.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm
index f47648e7f..4036d9005 100644
--- a/FS/FS/TicketSystem/RT_Internal.pm
+++ b/FS/FS/TicketSystem/RT_Internal.pm
@@ -7,7 +7,6 @@ use MIME::Entity;
use FS::UID qw(dbh);
use FS::CGI qw(popurl);
use FS::TicketSystem::RT_Libs;
-use RT::CurrentUser;
@ISA = qw( FS::TicketSystem::RT_Libs );
@@ -223,6 +222,9 @@ sub _web_external_auth {
my $user = $FS::CurrentUser::CurrentUser->username;
+ eval 'use RT::CurrentUser;';
+ die $@ if $@;
+
$session ||= {};
$session->{'CurrentUser'} = RT::CurrentUser->new();