group::member_p_not_cached (private)
group::member_p_not_cached -user_id user_id -group_id group_id \ [ -cascade_p cascade_p ]
Defined in packages/acs-subsite/tcl/group-procs.tcl
Return 1 if the user is a member of the group specified. If cascade_p 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_p is false, then the user must have specifically been granted membership on the group in question.
- Switches:
- -user_id (required)
- -group_id (required)
- -cascade_p (optional, defaults to
"f"
)- Returns:
- boolean value
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set cascade [db_boolean $cascade_p] set result [db_string user_is_member {} -default "f"] return [string is true -strict $result]XQL Not present: Generic PostgreSQL XQL file: <fullquery name="group::member_p_not_cached.user_is_member"> <querytext> select acs_group__member_p(:user_id,:group_id, :cascade) </querytext> </fullquery>packages/acs-subsite/tcl/group-procs-postgresql.xql
Oracle XQL file: <fullquery name="group::member_p_not_cached.user_is_member"> <querytext> select acs_group.member_p(:user_id,:group_id, :cascade) from dual </querytext> </fullquery>packages/acs-subsite/tcl/group-procs-oracle.xql