From d18ab951a94818b67d632d0636cc8e7f0fcde510 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 4 Oct 2024 10:56:44 -0400 Subject: [PATCH] Bug 38076: (QA follow-up): Make permission edit_catalogue imply fast_cataloging Any librarian with the edit_catalogue sub-permission should also be able to edit fast catalog records. If that was not true, a cataloger could not convert fast adds into full records. Signed-off-by: Katrin Fischer (cherry picked from commit 20c38762b8cf6ec16ddaaede54846468c63ef4e8) Signed-off-by: Lucas Gass --- cataloguing/addbiblio.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 4ff9fc3151..d7f556e629 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -515,14 +515,13 @@ my $fa_branch = $input->param('branch'); my $fa_stickyduedate = $input->param('stickyduedate'); my $fa_duedatespec = $input->param('duedatespec'); -my $userflags = 'edit_catalogue'; - $frameworkcode = &GetFrameworkCode($biblionumber) if ( $biblionumber and not( defined $frameworkcode) and $op ne 'cud-addbiblio' ); -if ($frameworkcode eq 'FA'){ - $userflags = 'fast_cataloging'; -} +my $userflags = + $frameworkcode eq 'FA' + ? [ 'fast_cataloging', 'edit_catalogue' ] + : 'edit_catalogue'; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { -- 2.39.5