Fixed wrong permission check in retrieveAutocompleteItemsAction in HelperController.