Index: openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl 25 Jul 2005 18:19:21 -0000 1.8 +++ openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl 27 Jul 2005 17:46:27 -0000 1.9 @@ -38,6 +38,11 @@ {override_p 0} } +# avoid anonymous participants +if {$user_id == 0} { + set user_id [auth::require_login] +} + # Roel: Participant also pays if { $participant_id == 0 } { set participant_id $user_id