Index: openacs-4/contrib/packages/simulation/www/simplay/enroll.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/simplay/Attic/enroll.tcl,v diff -u -N -r1.3 -r1.4 --- openacs-4/contrib/packages/simulation/www/simplay/enroll.tcl 16 Jan 2004 12:47:56 -0000 1.3 +++ openacs-4/contrib/packages/simulation/www/simplay/enroll.tcl 16 Jan 2004 17:31:45 -0000 1.4 @@ -17,13 +17,7 @@ # Open simulation - anybody can enroll so the user is authorized } else { # Closed enrollment. The user needs to be invited to enroll - set user_invited_p [db_string user_invited_p { - select count(*) - from sim_party_sim_map - where simulation_id = :workflow_id - and party_id = :user_id - and type = 'invited' - }] + set user_invited_p [simulation::template::user_invited_p -workflow_id $workflow_id] if { !$user_invited_p } { acs_user::get -user_id $user_id -array user