Index: openacs-4/packages/acs-tcl/tcl/admin-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/admin-procs.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/acs-tcl/tcl/admin-procs.tcl 13 Mar 2002 22:50:53 -0000 1.5
+++ openacs-4/packages/acs-tcl/tcl/admin-procs.tcl 14 Mar 2002 00:32:55 -0000 1.6
@@ -461,35 +461,41 @@
return [ad_user_class_query $new_set]
}
-proc_doc ad_registration_finite_state_machine_admin_links {member_state email_verified_p user_id {return_url ""}} {
+proc_doc ad_registration_finite_state_machine_admin_links {
+ member_state
+ email_verified_p
+ user_id
+ {return_url ""}
+} {
Returns the admininistation links to change the user's state in the user_state finite state machine.
} {
set user_finite_state_links [list]
switch $member_state {
"approved" {
- lappend user_finite_state_links "ban"
- lappend user_finite_state_links "delete"
+ lappend user_finite_state_links "ban"
+ lappend user_finite_state_links "delete"
}
"deleted" {
- lappend user_finite_state_links "undelete"
- lappend user_finite_state_links "ban"
+ lappend user_finite_state_links "undelete"
+ lappend user_finite_state_links "ban"
}
"needs approval" {
- lappend user_finite_state_links "approve"
- lappend user_finite_state_links "reject"
+ lappend user_finite_state_links "approve"
+ lappend user_finite_state_links "reject"
}
"rejected" {
- lappend user_finite_state_links "approve"
+ lappend user_finite_state_links "approve"
}
"banned" {
- lappend user_finite_state_links "approve"
+ lappend user_finite_state_links "approve"
}
}
+
if { $email_verified_p == "t" } {
- lappend user_finite_state_links "require email verification"
+ lappend user_finite_state_links "require email verification"
} else {
- lappend user_finite_state_links "approve email"
+ lappend user_finite_state_links "approve email"
}
+
return $user_finite_state_links
}
-