From: erickson Date: Fri, 1 Feb 2008 20:19:52 +0000 (+0000) Subject: removed cstoreditor :funcs import, was causing circular import problems when apputils... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d7b132bf4b2259c5ba65bca52d752dbb239c4cdf;p=Evergreen.git removed cstoreditor :funcs import, was causing circular import problems when apputils was imported by cstoreeditor. git-svn-id: svn://svn.open-ils.org/ILS/trunk@8575 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index bbfc6e06ef..fe0314d1ad 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -9,7 +9,7 @@ use OpenILS::Utils::ModsParser; use OpenSRF::EX qw(:try); use OpenILS::Event; use Data::Dumper; -use OpenILS::Utils::CStoreEditor qw/:funcs/; +use OpenILS::Utils::CStoreEditor; use OpenILS::Const qw/:const/; # --------------------------------------------------------------------------- @@ -64,7 +64,7 @@ sub check_user_perms { for my $type (@perm_types) { $PERM_QUERY->{select}->{au}->[0]->{params} = [$type, $org_id]; $PERM_QUERY->{where}->{id} = $user_id; - return $type unless $self->is_true(new_editor()->json_query($PERM_QUERY)->[0]->{has_perm}); + return $type unless $self->is_true(OpenILS::Utils::CStoreEditor->new->json_query($PERM_QUERY)->[0]->{has_perm}); } return undef; }