From 734e3aa0451df09e29a650810e96edf82a0fbb7d Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 9 Jan 2013 10:40:24 +0100 Subject: [PATCH] Bug 9065 - Upload local cover image permission implementation error If a staff user IS NOT "superlibrarian", even if having "upload_local_cover_images", trying to use the "Tools -> Upload local cover image" will fail with "You do not have permissions [...]". This patch corrects the permission typo : upload_cover_images was used instead of upload_local_cover_images --- tools/upload-cover-image.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upload-cover-image.pl b/tools/upload-cover-image.pl index 9fe1ad4..b85a81a 100755 --- a/tools/upload-cover-image.pl +++ b/tools/upload-cover-image.pl @@ -61,7 +61,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => { tools => 'upload_cover_images' }, + flagsrequired => { tools => 'upload_local_cover_images' }, debug => 0, } ); -- 1.7.9.5