Index: openacs-4/packages/acs-subsite/www/members/make-admin.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/members/make-admin.tcl,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/packages/acs-subsite/www/members/make-admin.tcl 27 Nov 2003 13:19:40 -0000 1.2.2.1 +++ openacs-4/packages/acs-subsite/www/members/make-admin.tcl 5 Dec 2003 00:21:57 -0000 1.2.2.2 @@ -10,10 +10,9 @@ db_transaction { foreach one_user_id $user_id { - group::add_member \ - -group_id $group_id \ - -user_id $one_user_id \ - -rel_type "admin_rel" + # membership state stuff should only check the membership_rel at this + # point - remember this is going to be made consistent in 5.1 + relation_add -member_state "" admin_rel $group_id $one_user_id } } on_error { ad_return_error "Error creating the relation" "We got the following error message while trying to create this relation:
$errmsg
" Index: openacs-4/packages/acs-subsite/www/members/member-invite.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/members/member-invite.tcl,v diff -u -r1.3.2.2 -r1.3.2.3 --- openacs-4/packages/acs-subsite/www/members/member-invite.tcl 3 Dec 2003 23:35:49 -0000 1.3.2.2 +++ openacs-4/packages/acs-subsite/www/members/member-invite.tcl 5 Dec 2003 00:21:57 -0000 1.3.2.3 @@ -72,10 +72,7 @@ # DRB: This is a bandaid-patch to make relseg usage consistent with the # older parts of the toolkit. Relsegs need reworking but until then... if { ![string equal $rel_type membership_rel] } { - group::add_member \ - -group_id $group_id \ - -user_id $user_id \ - -rel_type $rel_type + relation_add -member_state "" $rel_type $group_id $user_id } } { form set_error user_search user_id "Error adding user to community: $errmsg"