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)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 11 Dec 2018 19:21:02 +0000 (19:21 +0000)
commitda5e41f6def8a5cbafc9303b0fff35cb13e50e72
treee9c7be57ef440cd3debb3dd82271f0b6858316d1
parent875f3162c8008ef288adfcd18ada490cf06ecc15
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>
installer/data/mysql/atomicupdate/bug_21961_didyouean_typo.sql [new file with mode: 0644]
installer/data/mysql/userpermissions.sql