Bug 10866: Hide patron's history if intranetreadinghistory is set to not allow
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 22 Apr 2015 10:14:24 +0000 (12:14 +0200)
committerMason James <mtj@kohaaloha.com>
Sat, 25 Jul 2015 13:20:08 +0000 (01:20 +1200)
commitc212d9f4fc092ae355154949589b9d8aad5010a0
tree5f70046ac9e3360aa306feab96bb6bf8663b7a9b
parent43ecf4c778367de1900b22f3a3d6e816b91eed93
Bug 10866: Hide patron's history if intranetreadinghistory is set to not allow

If set to "not allow", the intranetreadinghistory pref prevent staff
members to access patron's checkout history.
But:
1/ The page is still accessible if you know the url
2/ The history can be consulted on the item history page

Test plan:
0/ Don't apply this patch
1/ Set the intranetreadinghistory to allow
2/ Go on a patron's checkout history page
3/ Open a new tab and go on a item's checkout history page
4/ Set the intranetreadinghistory to not allow
5/ Refresh both pages => no change
6/ Apply this patch
7/ Refresh both page.
On the first page, you should see a warning
On the other one, you should see that the patron column is not displayed
anymore.

Signed-off-by: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt