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

Partial Call Graph (max 5 caller/called nodes):
%3 notification::delivery::send notification::delivery::send (public) notification::security::can_notify_user notification::security::can_notify_user notification::delivery::send->notification::security::can_notify_user acs_user::get_user_info acs_user::get_user_info (public) notification::security::can_notify_user->acs_user::get_user_info

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: