Index: openacs-4/packages/acs-subsite/tcl/subsite-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/subsite-procs.tcl,v diff -u -r1.33 -r1.34 --- openacs-4/packages/acs-subsite/tcl/subsite-procs.tcl 8 Mar 2005 00:06:32 -0000 1.33 +++ openacs-4/packages/acs-subsite/tcl/subsite-procs.tcl 17 Mar 2005 13:33:51 -0000 1.34 @@ -373,8 +373,10 @@ @author Hector Amado (hr_amado@galileo.edu) @creation-date 2004-06-16 } { + + set package_id [ad_conn subsite_id] - if { ![parameter::get_from_package_key -package_key acs-subsite -parameter SolicitPortraitP] } { + if { ![parameter::get -package_id $package_id -parameter SolicitPortraitP -default 1] } { if { ![acs_user::site_wide_admin_p] } { ns_log notice "user is tried to see user/portrait/upload without permission" ad_return_forbidden \