acs_user::change_state (public)

 acs_user::change_state -user_id user_id -state state

Defined in packages/acs-tcl/tcl/community-core-procs.tcl

Change the membership state of a user.

Switches:
-user_id (required)
-state (required)

Testcases:
auth_authenticate
Source code:
    set rel_id [acs_user::get_user_info  -user_id $user_id -element rel_id]

    # most likely this is not a registered user
    if {$rel_id eq ""} {
        return
    }

    membership_rel::change_state -rel_id $rel_id -state $state
    # flush user-specific info
    acs_user::flush_user_info -user_id $user_id
Generic XQL file:
packages/acs-tcl/tcl/community-core-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/community-core-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/community-core-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: