Index: openacs-4/packages/dotlrn/www/community-deregister.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community-deregister.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/community-deregister.tcl 10 Jan 2002 19:30:18 -0000 1.2 +++ openacs-4/packages/dotlrn/www/community-deregister.tcl 11 Jan 2002 21:51:51 -0000 1.3 @@ -7,17 +7,22 @@ @version $Id$ } -query { {referer "./"} + {user_id ""} {community_id ""} } ad_maybe_redirect_for_registration -set user_id [ad_conn user_id] - if {[empty_string_p $community_id]} { set community_id [dotlrn_community::get_community_id] } +if {[empty_string_p $user_id]} { + set user_id [ad_conn user_id] +} else { + dotlrn::require_user_admin_community $community_id +} + dotlrn_community::remove_user $community_id $user_id ns_returnredirect $referer