Misc refactoring.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
}
if( $self->is_precat ) {
- return $self->bail_on_events(OpenILS::Event->new('PERM_FAILURE'))
- unless $self->editor->allowed('CREATE_PRECAT');
$self->make_precat_copy;
return if $self->bail_out;
sub make_precat_copy {
my $self = shift;
my $copy = $self->copy;
+ return $self->bail_on_events(OpenILS::Event->new('PERM_FAILURE'))
+ unless $self->editor->allowed('CREATE_PRECAT');
if($copy) {
$logger->debug("circulator: Pre-cat copy already exists in checkout: ID=" . $copy->id);