);
}
__PACKAGE__->register_method(
- method => "enabled",
+ method => "enabled",
api_name => "open-ils.selfcheck.enabled",
- stream => 1,
- argc => 0,
+ api_level => 1,
+ argc => 0,
signature => {
desc => 'Check if selfcheck is enabled',
return => {
}
);
+sub xyzzy {
+ my ($self, $conn, $authtoken) = @_;
+
+ return new OpenILS::Event("SELFCHECK_NOT_ALLOWED") unless ($U->is_true(
+ $U->ou_ancestor_setting_value($org, 'circ.selfcheck')
+ ));
+
+ return 'xyzzy';
+}
+__PACKAGE__->register_method(
+ method => "xyzzy",
+ api_name => "open-ils.selfcheck.xyzzy"
+);
+
1;