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.22.2.3 -r1.22.2.4 --- openacs-4/packages/acs-subsite/tcl/subsite-procs.tcl 19 Jul 2004 18:39:41 -0000 1.22.2.3 +++ openacs-4/packages/acs-subsite/tcl/subsite-procs.tcl 17 Mar 2005 13:35:37 -0000 1.22.2.4 @@ -296,8 +296,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 \