Index: openacs-4/packages/acs-subsite/tcl/group-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/group-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/acs-subsite/tcl/group-procs.tcl 12 Mar 2004 18:48:54 -0000 1.22 +++ openacs-4/packages/acs-subsite/tcl/group-procs.tcl 20 Apr 2004 21:12:58 -0000 1.23 @@ -1,4 +1,4 @@ -# /packages/mbryzek-subsite/tcl/group-procs.tcl +# /packages/acs-subsite/tcl/group-procs.tcl ad_library { @@ -359,13 +359,21 @@ } { Return 1 if the user is a member of the group specified. You can specify a group name or group id. +
+ Note: The group name is not unique + by definition, + and if you call this function with a duplicate group name it + will bomb!!! Using the group name as a parameter is + thus strongly discouraged unless you are really, really sure the + name is unique.
+If cascade is true, check to see if the user is a member of the group by virtue of any other component group. (e.g. if group B is a component of group A then if a user is a member of group B then he is automatically a member of A also.) If cascade is false, then the user must have specifically - been granted membership on the group in question. + been granted membership on the group in question.
} { if { [empty_string_p $user_id] } { set user_id [ad_conn user_id]