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

(-)a/Koha/Biblio.pm (-2 / +3 lines)
Lines 263-270 sub can_be_edited { Link Here
263
    Koha::Exceptions::MissingParameter->throw( error => "The patron parameter is missing or invalid" )
263
    Koha::Exceptions::MissingParameter->throw( error => "The patron parameter is missing or invalid" )
264
        unless $patron && ref($patron) eq 'Koha::Patron';
264
        unless $patron && ref($patron) eq 'Koha::Patron';
265
265
266
    my $editcatalogue = $self->frameworkcode eq 'FA' ? 'fast_cataloging' : 'edit_catalogue';
267
266
    return (
268
    return (
267
        ( $self->metadata->source_allows_editing && $patron->has_permission( { editcatalogue => 'edit_catalogue' } ) )
269
        ( $self->metadata->source_allows_editing && $patron->has_permission( { editcatalogue => $editcatalogue } ) )
268
            || $patron->has_permission( { editcatalogue => 'edit_locked_records' } ) ) ? 1 : 0;
270
            || $patron->has_permission( { editcatalogue => 'edit_locked_records' } ) ) ? 1 : 0;
269
}
271
}
270
272
271
- 

Return to bug 38094