Bugzilla – Attachment 14501 Details for
Bug 9065
Upload local cover image permission implementation error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9065 - set correct permission for upload local cover image
Bug-9065---set-correct-permission-for-upload-local.patch (text/plain), 1.52 KB, created by
Galen Charlton
on 2013-01-09 16:24:43 UTC
(
hide
)
Description:
Bug 9065 - set correct permission for upload local cover image
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-01-09 16:24:43 UTC
Size:
1.52 KB
patch
obsolete
>From c9e81f428229586ec93ed9c8b670d9d8d6ee751a Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 9 Jan 2013 10:40:24 +0100 >Subject: [PATCH] Bug 9065 - set correct permission for upload local cover image > >This patch fixes a problem where if a staff user has the >upload_local_cover_images permission (and is not a superlibrarian >and does not have all of the tools permissions), trying to use the >"Tools -> Upload local cover image" will fail with "You do not have >permissions [...]". > >To test after applying the patch: > >- Create a staff uesr that has just the catalogue and > upload_local_cover_images permission. >- Log in as that staff user. >- Go to "Tools -> Upload local cover image". >- Verify that one is given the form to upload a cover image. >- Without the patch, one will be presented with the login > form instead. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > tools/upload-cover-image.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >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.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9065
:
14486
|
14501
|
14520