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

(-)a/Koha/Virtualshelf.pm (-2 / +1 lines)
Lines 248-254 sub can_be_managed { Link Here
248
    return 1
248
    return 1
249
      if $borrowernumber and $self->owner == $borrowernumber;
249
      if $borrowernumber and $self->owner == $borrowernumber;
250
250
251
    my $patron = Koha::Patrons->find( $borrowernumber );
251
    my $patron = Koha::Patrons->find( $borrowernumber ) or return 0;
252
    return 1
252
    return 1
253
      if $self->is_public and haspermission( $patron->userid, { lists => 'edit_public_lists' } );
253
      if $self->is_public and haspermission( $patron->userid, { lists => 'edit_public_lists' } );
254
    return 0;
254
    return 0;
255
- 

Return to bug 26346