Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Correcting suggestion approval permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Nov 28, 2014
1 parent 16150e0 commit 402dc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/ExtensibleSearchAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function toggleSuggestionApproved($request) {

public function getSuggestions($request) {

if($suggestions = $this->service->getSuggestions($request->getVar('term'))) {
if(Config::inst()->get('ExtensibleSearchSuggestion', 'enable_suggestions') && ($suggestions = $this->service->getSuggestions($request->getVar('term')))) {

// Return the search suggestions as JSON.

Expand Down

0 comments on commit 402dc4a

Please sign in to comment.