Signed-off-by: Galen Charlton <gmc@esilibrary.com>
return $set;
}
+sub opt_in_enabled {
+ my $resp = $U->simplereq(
+ 'open-ils.actor',
+ 'open-ils.actor.user.org_unit_opt_in.enabled'
+ );
+ return $resp;
+}
+
# do an opt-in check
sub opt_in_check {
my ($authtoken, $usr_id) = @_;
return $resp;
}
+unless(opt_in_enabled()) {
+ BAIL_OUT('cannot test opt-in unless enabled in opensrf.xml');
+}
+
#----------------------------------------------------------------
# 1. Login, register workstation, get authtoken.
#----------------------------------------------------------------