From c8781f8b55e8ce1f53f6a32490cd70b3b7b84976 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 28 May 2009 16:15:02 +0000 Subject: [PATCH] Fix a bad call to insufficient in the Shop. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Account/Shop.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index b2b496bca..9de9d43de 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -22,6 +22,7 @@ - fixed a bug in Thingy where when searching using multi value search form elements (eg. check lists) only one of the selected elements was taken into account in the search query. ( Martin Kamerbeek / Oqapi ) + - fixed #10439: Call to insufficient is wrong (lrobinson / Orchard Solutions ) 7.7.7 - Added EMS Schedule table diff --git a/lib/WebGUI/Account/Shop.pm b/lib/WebGUI/Account/Shop.pm index 91a5a9893..28d21d617 100644 --- a/lib/WebGUI/Account/Shop.pm +++ b/lib/WebGUI/Account/Shop.pm @@ -297,7 +297,7 @@ sub www_viewTransaction { my $transaction = shift || WebGUI::Shop::Transaction->new( $session,$transactionId ); my $notice = shift; - return $session->insufficient unless $transaction->get('userId') eq $session->user->userId; + return $session->privilege->insufficient unless $transaction->get('userId') eq $session->user->userId; my $var = $transaction->getTransactionVars; $var->{ notice } = $notice;