Index: openacs-4/packages/dotlrn/www/members.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/members.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/dotlrn/www/members.tcl 8 Mar 2002 00:27:05 -0000 1.9 +++ openacs-4/packages/dotlrn/www/members.tcl 14 Mar 2002 23:46:35 -0000 1.10 @@ -11,5 +11,13 @@ set user_id [ad_get_user_id] set context_bar {{"one-community-admin" Admin} {Manage Members}} set portal_id [dotlrn_community::get_portal_id $community_id $user_id] +set admin_p [dotlrn::user_can_admin_community_p -user_id $user_id $community_id] +if {[empty_string_p $portal_id] && $admin_p} { + # the admin using this page is not a member of this comm, but they + # need he contol panel link (they will probably be confused as to + # where they are, so... + set portal_id [dotlrn_community::get_community_admin_portal_id $community_id] +} + ad_return_template