Fix a bad call to insufficient in the Shop.

This commit is contained in:
Colin Kuskie 2009-05-28 16:15:02 +00:00
parent 4ff5595666
commit c8781f8b55
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;