Autocomplete action must exist on user registration

No need to restrict the autocomplete suggestion system to logged in users.
It only botched the registration process, because the 'autocomplete' action
had not been connected in the routing system.
This commit is contained in:
Mikael Nordfeldth 2013-09-29 15:28:25 +02:00
parent 633191d808
commit 981295f44c

View File

@ -49,10 +49,8 @@ class AutocompletePlugin extends Plugin
function onRouterInitialized($m) function onRouterInitialized($m)
{ {
if (common_logged_in()) {
$m->connect('main/autocomplete/suggest', array('action'=>'autocomplete')); $m->connect('main/autocomplete/suggest', array('action'=>'autocomplete'));
} }
}
function onPluginVersion(&$versions) function onPluginVersion(&$versions)
{ {