group::remove_member (public)
group::remove_member -group_id group_id -user_id user_id
Defined in packages/acs-subsite/tcl/group-procs.tcl
Removes a user from a group. No permission checking.
- Switches:
- -group_id (required)
- -user_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- subsite_api
Source code: # Find all acs_rels between this group and this user, which are membership_rels or descendants thereof (admin_rels, for example) set rel_id_list [db_list select_rel_ids { select r.rel_id from acs_rels r, membership_rels mr where r.rel_id = mr.rel_id and r.object_id_one = :group_id and r.object_id_two = :user_id }] db_transaction { foreach rel_id $rel_id_list { relation_remove $rel_id } } flush_members_cache -group_id $group_idXQL Not present: Generic PostgreSQL XQL file: packages/acs-subsite/tcl/group-procs-postgresql.xql
Oracle XQL file: packages/acs-subsite/tcl/group-procs-oracle.xql