notification::security::can_notify_user (public)

 notification::security::can_notify_user -user_id user_id \
    [ -delivery_method_id delivery_method_id ]

Defined in packages/notifications/tcl/notifications-security-procs.tcl

Can a user be notified for a given delivery method. This proc can be expanded to deal with cases when we don't want to send a notification. For instance we could check email_bouncing_p or if a user is on vacation. Right now it just makes sure its an approved user.

Switches:
-user_id (required)
-delivery_method_id (optional)
Returns:
boolean value

Testcases:
No testcase defined.
Source code:
        return [expr {[acs_user::get_user_info -user_id $user_id -element member_state] eq "approved"}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: