[koha-commits] main Koha release repository branch new/bug_9065 created. v3.08.00-1540-ge81cc3d

Git repo owner gitmaster at git.koha-community.org
Sun Jan 13 14:30:48 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, new/bug_9065 has been created
        at  e81cc3d1d305cbca3c0b63310a9f0928bae4183d (commit)

- Log -----------------------------------------------------------------
commit e81cc3d1d305cbca3c0b63310a9f0928bae4183d
Author: Fridolyn SOMERS <fridolyn.somers at biblibre.com>
Date:   Wed Jan 9 10:40:24 2013 +0100

    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 at esilibrary.com>
    Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
    
    mysql> select * from permissions where code="upload_cover_images";
    Empty set (0.00 sec)
    
    mysql> select * from permissions where code="upload_local_cover_images";
    +------------+---------------------------+---------------------------+
    | module_bit | code                      | description               |
    +------------+---------------------------+---------------------------+
    |         13 | upload_local_cover_images | Upload local cover images |
    +------------+---------------------------+---------------------------+
    1 row in set (0.00 sec)
    
    "git grep upload_cover_images" returns 0 result.
    Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

-----------------------------------------------------------------------


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list