[Koha-bugs] [Bug 26346] Add option to make a public list editable by library staff only

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 9 16:28:10 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26346

--- Comment #61 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
add_biblio

 my $patron = Koha::Patrons->find( $borrowernumber ) or return 0;
    return unless ( $self->owner == $borrowernumber &&
$self->allow_change_from_owner ) || ( $self->allow_change_from_staff &&
$patron->can_patron_change_staff_only_lists ) ||
$self->allow_change_from_others;

Why return 0 on the first line and return undef on the second?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list