View | Details | Raw Unified | Return to bug 26346
Collapse All | Expand All

(-)a/Koha/Virtualshelf.pm (-2 / +1 lines)
Lines 241-247 sub can_be_managed { Link Here
241
    return 1
241
    return 1
242
      if $borrowernumber and $self->owner == $borrowernumber;
242
      if $borrowernumber and $self->owner == $borrowernumber;
243
243
244
    my $patron = Koha::Patrons->find( $borrowernumber );
244
    my $patron = Koha::Patrons->find( $borrowernumber ) or return 0;
245
    return 1
245
    return 1
246
      if $self->is_public and haspermission( $patron->userid, { lists => 'edit_public_lists' } );
246
      if $self->is_public and haspermission( $patron->userid, { lists => 'edit_public_lists' } );
247
    return 0;
247
    return 0;
248
- 

Return to bug 26346