Koha/installer/data/mysql
Jonathan Druart 0893a7c3db Bug 14298: Add the new 'self_checkout' permissions
There is a security issue in the self checkout module.
The user used to check items out must have the circulate =>
circulate_remaining_permissions permissions.
So even if a user does not have a login/password or a barcode he cans
access to the circulation module of the intranet.
Imagine if the sco patron used is a superlibrarian...

This patch set will change the behavior and adds a new permission to
access to the sco module (circulate => self_checkout).
This permission should be the only one defined for this patron.

IMPORTANT NOTE: Hopefully, this only works if both interfaces use the
same domains (but different ports).

Test plan:
0/ Does not apply this patch set
1/ Create a patron with the circulate => circulate_remaining_permissions
and some others. Note his userid/pwd (later 'sco/sco').
Turn on WebBasedSelfCheck and AutoSelfCheckAllowed
Fill the AutoSelfCheckID and AutoSelfCheckPass wich 'sco' and 'sco'
2/ Log you out from the OPAC and the intranet
3/ Go on the sco page
4/ Note that your are automatically logged in
5/ Go on the circulation module on the intranet side
6/ Oops
7/ Apply this patch
8/ Execute the updatedatabase
9/ Note that the sco user only has the new permission circulate =>
self_checkout, others have been removed
10/ Try to reproduce the issue, it should not access anything on the
intranet side
11/ Confirm that there is no regression in the sco module

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Works well no regressions, changes the permissions appropriately.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-09-25 11:15:47 -03:00
..
atomicupdate Bug 14298: Add the new 'self_checkout' permissions 2015-09-25 11:15:47 -03:00
de-DE Bug 14472: Wrong ISSN search index in record matching rules 2015-09-07 11:36:19 -03:00
en Bug 14298: Add the new 'self_checkout' permissions 2015-09-25 11:15:47 -03:00
es-ES Bug 14472: Wrong ISSN search index in record matching rules 2015-09-07 11:36:19 -03:00
fr-FR Bug 14472: Wrong ISSN search index in record matching rules 2015-09-07 11:36:19 -03:00
it-IT Bug 14472: (follow-up) Wrong ISSN search index in record matching rules 2015-09-07 11:37:25 -03:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-01 15:22:27 -03:00
nb-NO Bug 14472: Wrong ISSN search index in record matching rules 2015-09-07 11:36:19 -03:00
pl-PL Bug 14472: Wrong ISSN search index in record matching rules 2015-09-07 11:36:19 -03:00
ru-RU Bug 14472: (follow-up) Wrong ISSN search index in record matching rules 2015-09-07 11:37:25 -03:00
uk-UA Bug 14472: (follow-up) Wrong ISSN search index in record matching rules 2015-09-07 11:37:25 -03:00
backfill_statistics.pl
kohastructure.sql Bug 14205: Deleting an Item/Record does not remove link to course reserve 2015-09-02 09:40:47 -03:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 12357: Enhancements to RIS and BibTeX exporting 2015-09-07 13:58:39 -03:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 14472: (QA followup) fix updatedatabase.pl for multiple ISSN rules 2015-09-18 12:39:07 -03:00