Bug 7984 [SIGNED-OFF] - Fix the upload_local_cover_images permission
authorMagnus Enger <magnus@enger.priv.no>
Thu, 19 Apr 2012 19:22:01 +0000 (21:22 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 14 May 2012 12:47:35 +0000 (14:47 +0200)
upload_local_cover_images is needed to use the new, cool local covers
feature

This patch
- adds upload_local_cover_images to
  installer/data/mysql/nb-NO/1-Obligatorisk/userpermissions.sql
  from whch it was missing, making it impossible to use the local
  covers feature in an nb-NO installation
- translates the text of the preference for de-DE (thanks to cait,
  drojf and mveron for the translation)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Marc Veron <veron@veron.ch>

I did no fresh installs, however I
- had a look at the files before and after applying the patch
- carefully checked the syntax
- tested with MySQL by removing the entry in the table 'permissions'
  double checked that now the entry in Staff client was one
  and then did  an insert with the sql snippets.
  In DE-de the translated entry translation appeared as expected.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

installer/data/mysql/de-DE/mandatory/userpermissions.sql
installer/data/mysql/nb-NO/1-Obligatorisk/userpermissions.sql

index 2302273..c14f0fd 100644 (file)
@@ -36,7 +36,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'manage_csv_profiles', 'CSV-Profile für Export verwalten'),
    (13, 'moderate_tags', 'Von Benutzern vergebene Tags moderieren'),
    (13, 'rotating_collections', 'Wandernde Sammlungen verwalten'),
-   (13, 'upload_local_cover_images', 'Upload local cover images'),
+   (13, 'upload_local_cover_images', 'Eigene Coverbilder hochladen'),
    (15, 'check_expiration', 'Ablauf eines Abonnements prüfen'),
    (15, 'claim_serials', 'Fehlende Hefte reklamieren'),
    (15, 'create_subscription', 'Neues Abonnement anlegen'),
index 24f081e..2897c4e 100644 (file)
@@ -57,6 +57,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
    (13, 'manage_csv_profiles', 'Administrere CSV eksportprofiler'),
    (13, 'moderate_tags', 'Behandle tagger fra lånere'),
    (13, 'rotating_collections', 'Administrere roterende samlinger'),
+   (13, 'upload_local_cover_images', 'Laste opp lokale omslagsbilder'),
    (15, 'check_expiration', 'Sjekke utløpsdato for et periodikum'),
    (15, 'claim_serials', 'Purre manglende tidsskrifthefter'),
    (15, 'create_subscription', 'Opprette abonnementer'),