Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Marc Véron 83936a6b82 Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set
If permission 'circulate_remaining_permissions' is not set, links to 'Circulation'
(/circ/circulation-home.pl) on the intranet home page lead to an error
message: "Error: You do not have permission to access this page."

This patch hides the links if the permission is not set.

To test:
- Apply patch
- Log in to the intranet (staff client) with a patron who has the permission
  'circulate_remaining_pernissions' not set
- Verify that no links to Circulation appear on the intranet start page
  (menu top left and menu in main page area)
- Log in as a user who has the permission set.
- Verify that te links appear as appropriate.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
2016-01-27 05:23:22 +00:00
..
catalogue Bug 14636: Item search - improving display 2015-12-30 12:44:26 +00:00
csv_headers Bug 14636: Item search - improving display 2015-12-30 12:44:26 +00:00
virtualshelves/merge
acquisitions-add-to-basket.inc
acquisitions-menu.inc
acquisitions-search.inc
acquisitions-toolbar.inc Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
additem.js.inc
admin-items-search-field-form.inc
admin-menu.inc Bug 15409 - Plugins section missing from Admin menu sidebar 2015-12-30 18:03:30 +00:00
auth-finder-search.inc BUG 14991 Improve consistency of authority search 2015-12-30 04:29:04 +00:00
authorities-search-results.inc Bug 10985: [UNIMARC] Fix authority summary 2015-04-22 11:54:36 -03:00
authorities-search.inc Bug 15469: Same fix for the "entire record" tab 2016-01-14 17:02:49 +00:00
authorities-toolbar.inc Bug 15381: Remove getauthtypes and getauthtype 2015-12-31 18:59:02 +00:00
authorities.inc
authorities_js.inc
av-build-dropbox.inc
biblio-default-view.inc
biblio-view-menu.inc Bug 14557: Add holds count to holds tab 2015-08-26 10:56:02 -03:00
borrower_debarments.inc Bug 8007: Discharge - Glue 2015-04-30 12:33:53 -03:00
branch-selector.inc
browser-strings.inc
budgets-active-currency.inc Bug 15049: (followup) Add warning about "No active currency" 2015-12-30 23:34:34 +00:00
budgets-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
budgets-admin-toolbar.inc Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
calendar.inc Bug 12072: Make datepicker and templates to be aware of dmydot format 2015-11-19 13:15:19 -03:00
cat-menu.inc
cat-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
cat-toolbar.inc Bug 14915: [FA 4.4] (QA followup) Replace fa-hold with fa-sticky-note-o 2015-10-27 10:04:20 -03:00
cataloging-search.inc Bug 14829: Fix shortcuts in the cataloging and patron modules 2015-10-02 15:08:42 -03:00
cateditor-ui.inc Bug 15344: Remove unucessary call to GetMemberDetails 2015-12-30 11:53:18 +00:00
cateditor-widgets-marc21.inc Bug 11559: (followup) Fix import bugs, display/parsing issues 2015-10-27 12:18:00 -03:00
checkin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
checkouts-table-footer.inc Bug 14948 - Display amounts right aligned in tables on patron pages 2015-12-30 04:25:51 +00:00
checkouts-table.inc Bug 15289 - borrowers permission allows to see patron's loans 2015-12-30 02:51:50 +00:00
circ-menu.inc Bug 15386: Checkout / patron pages: Hide menu items leading to 404 pages 2015-12-30 13:10:10 +00:00
circ-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
cities-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
columns_settings.inc Bug 14510: (QA followup) fix columns settings in other pages 2015-09-18 11:57:04 -03:00
contracts-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
currencies-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
datatables-strings.inc
datatables.inc
date-format.inc Bug 12072: Make datepicker and templates to be aware of dmydot format 2015-11-19 13:15:19 -03:00
doc-head-close-receipt.inc
doc-head-close.inc Bug 15598: Also fixing space near exclamation mark in other files 2016-01-27 05:19:38 +00:00
doc-head-open.inc Bug 13948: Prevent explosion when Template::Plugin::Stash not installed 2015-07-28 10:30:21 -03:00
empty_line.inc Bug 14263: Fix export of item search results when translated 2015-06-04 10:08:40 -03:00
facets.inc Bug 15345: Translatability: fix issue in facets (Availability') 2015-12-29 20:23:49 +00:00
form-blocks.inc
format_price.inc
greybox.inc Revert "Bug 8992: Use the existing greybox plugin in interface/theme" 2015-04-29 12:07:23 -03:00
guided-reports-view.inc
header.inc Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set 2016-01-27 05:23:22 +00:00
help-bottom.inc
help-top.inc Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
home-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
installer-doc-head-close.inc Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
intranet-bottom.inc Bug 11431: Add additional sound options 2015-11-04 12:32:57 -03:00
intranetstylesheet.inc
labels-toolbar.inc Bug 14915: (QA followup) Switch recent commits from Glyphicons to Font Awesome 2015-10-27 10:04:53 -03:00
letters-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
member-alt-address-style-de.inc Bug 15373: Changing Zip to ZIP on OPAC and Intranet 2015-12-30 16:30:35 +00:00
member-alt-address-style-us.inc Bug 15373: Changing Zip to ZIP on OPAC and Intranet 2015-12-30 16:30:35 +00:00
member-alt-contact-style-de.inc Bug 15373: Changing Zip to ZIP on OPAC and Intranet 2015-12-30 16:30:35 +00:00
member-alt-contact-style-us.inc Bug 15373: Changing Zip to ZIP on OPAC and Intranet 2015-12-30 16:30:35 +00:00
member-display-address-style-de.inc Bug 15542: Change for the German style address format 2016-01-23 19:15:08 +00:00
member-display-address-style-us.inc Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
member-main-address-style-de.inc Bug 15340: Translatability: fix issue with 'or choose' splitted by <strong> tag 2015-12-30 19:08:24 +00:00
member-main-address-style-us.inc Bug 15340: Translatability: fix issue with 'or choose' splitted by <strong> tag 2015-12-30 19:08:24 +00:00
members-menu.inc Bug 14157: Notices tab in the patron record should not depend on EnhancedMessagingPreferences to display 2015-11-05 10:29:15 -03:00
members-toolbar.inc Bug 12933: (QA followup) Add missing notice templates and other small fixes 2015-11-04 12:41:29 -03:00
merge-record-strings.inc Bug 8064: Change the way target record is built. 2015-11-09 15:08:57 -03:00
merge-record.inc Bug 8064: Change the way target record is built. 2015-11-09 15:08:57 -03:00
messaging-preference-form.inc Bug 14836: Use Koha::PatronCategor[y|ies] in admin/categories.pl 2015-11-05 10:57:40 -03:00
nl-search-form.tt
page-numbers.inc
patron-search-box.inc Bug 13931 - Date of birth in patron search result and in autocomplete 2015-12-31 13:40:29 +00:00
patron-search.inc Bug 12072: Make datepicker and templates to be aware of dmydot format 2015-11-19 13:15:19 -03:00
patron-title.inc
patron-toolbar.inc Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
patroncards-errors.inc
patroncards-toolbar.inc Bug 14915: (QA followup) Switch recent commits from Glyphicons to Font Awesome 2015-10-27 10:04:53 -03:00
patrons-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
permissions.inc Bug 15289 [QA Followup] - Fix minor language issue 2015-12-30 02:51:50 +00:00
popup-bottom.inc
prefs-admin-search.inc Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
prefs-menu.inc Bug 11559: Rancor: advanced cataloging interface 2015-10-27 12:17:39 -03:00
printers-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
quotes-toolbar.inc Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
quotes-upload-toolbar.inc Bug 14915: (QA followup) Replace fa-hdd with fa-save 2015-10-27 10:03:24 -03:00
reports-menu.inc
reports-toolbar.inc Bug 15321 - Add delete report link to Show, Edit and Run screens 2015-12-31 15:44:29 +00:00
resort_form.inc
rotating-collections-toolbar.inc Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
search_indexes.inc
searchbox-keep-text.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
serials-menu.inc Bug 10855: Search subscriptions by additional fields 2015-10-02 15:10:30 -03:00
serials-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
serials-toolbar.inc Bug 14915: (QA followup) Tweak '+' icon for serials-home 2015-10-27 10:02:51 -03:00
slip-print.inc
strings.inc Bug 8236: Renewing policy in overdue or restriction case 2015-10-19 14:36:55 -03:00
subscriptions-search.inc Bug 10971: Hide EAN search for MARC21 / template corrections 2015-04-24 20:14:52 -03:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00
timepicker.inc
tools-item-action.inc
tools-menu.inc Bug 15211: Patron card creator needs tools sidebar 2015-12-31 14:58:58 +00:00
tools-nomatch-action.inc
tools-overlay-action.inc
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc Bug 15453: Assign the correct shelfid to the download list links 2016-01-07 18:54:34 +00:00
wysiwyg-systempreferences.inc Bug 11584: Add wysiwyg editor to system preferences dealing with HTML 2015-08-28 10:28:50 -03:00
z3950-admin-search.inc Bug 14189: Made text persist when clicking the tabs under the searchbox 2015-07-07 15:37:11 -03:00