[BUGFIX] Prevent javascript error in backend 10/54710/2
authorMarkus Günther <mail@markus-guenther.de>
Mon, 20 Nov 2017 08:18:27 +0000 (09:18 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 20 Nov 2017 19:51:38 +0000 (20:51 +0100)
commitf3a43aea5b844c5d482bbc576095257ccbb56995
tree12ecb14d27179d4f211f1968a6f13e4971ba468e
parent9e4f48e66892a2978c0889eb5710a13ee5dfdf9f
[BUGFIX] Prevent javascript error in backend

Adding a condition to check if a backend user has permissions on the
search to prevent a JS error while initializing the autocomplete module.

Fixes: #82969
Releases: master, 8.7, 7.6
Change-Id: If2827902443ff7411d9b2c1050213be3e0d78fb6
Reviewed-on: https://review.typo3.org/54710
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/LiveSearch.js