Bug 21961: Fix typo in manage_didyoumean permission
authorKatrin Fischer <katrin.fischer.83@web.de>
Thu, 6 Dec 2018 11:42:12 +0000 (12:42 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 12 Dec 2018 10:57:09 +0000 (10:57 +0000)
commit3f92fca65845b5ed0b51d29b7dc27d4c584e2e01
treef0557fc5706bc62e1eed9127c77a2585a235aee0
parent0c99c3a30a4ebe2ef18db1a6d1e48a99ef7ea0b6
Bug 21961: Fix typo in manage_didyoumean permission

The typo in the installer files will cause problems on new
installations as the code for the permission is wrong.

This means that on new installations the Did you mean? section
on the administration page won't show up.

In order to fix this, we need to correct the code in
permissions, but also the permissions for users who
this permission has been given to.

To test:
- Start without the patch
- Use a new installation with the permission typo
- Log in as superlibrarian
- Verify that the "did you mean?" configuration page
  is not visible
- Create another staff user with permission to access
  staff and manage_didyoumean checked
- Verify configuration page remains invisible
- Apply patch and run database update
- Check both users again, the config page should now sohw

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit da5e41f6def8a5cbafc9303b0fff35cb13e50e72)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/atomicupdate/bug_21961_didyouean_typo.sql [new file with mode: 0644]
installer/data/mysql/userpermissions.sql