Index: openacs-4/packages/dotlrn/tcl/community-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/tcl/community-procs.tcl,v diff -u -r1.190 -r1.191 --- openacs-4/packages/dotlrn/tcl/community-procs.tcl 26 Feb 2005 17:52:21 -0000 1.190 +++ openacs-4/packages/dotlrn/tcl/community-procs.tcl 5 Mar 2005 00:28:01 -0000 1.191 @@ -1306,6 +1306,12 @@ if {[empty_string_p $user_id]} { set user_id [ad_get_user_id] } + + set show_drop_link_p [parameter::get_from_package_key \ + -package_key dotlrn-portlet \ + -parameter AllowMembersDropGroups \ + -default 0] + foreach sc_id [get_subcomm_list -community_id $community_id] { if {[has_subcommunity_p -community_id $sc_id] \ && [member_p $sc_id $user_id]} { @@ -1314,8 +1320,10 @@ set url [get_community_url $sc_id] append chunk "$pretext [get_community_name $sc_id]\n" - append chunk "([_ dotlrn.Drop])\n" - + if {$show_drop_link_p} { + append chunk "([_ dotlrn.Drop])\n" + } + append chunk "\n" } elseif {[member_p $sc_id $user_id] || [not_closed_p -community_id $sc_id]} { @@ -1356,8 +1364,9 @@ } elseif {[member_p $sc_id $user_id]} { # User is a member. - append chunk "([_ dotlrn.Drop])\n" - + if {$show_drop_link_p} { + append chunk "([_ dotlrn.Drop])\n" + } } } }