1
0

Disable user name auto complete if people cloud is deactivated for guest user

This commit is contained in:
hukoeth 2010-09-12 20:17:02 +08:00 committed by Bharat Mediratta
parent 714d6730ae
commit 5f5cd93114

View File

@ -229,6 +229,7 @@ class photoannotation_Controller extends Controller {
}
public function autocomplete() {
if (!identity::active_user()->guest || module::get_var("photoannotation", "allowguestsearch", false)) {
$users = array();
$user_parts = explode(",", Input::instance()->get("q"));
$limit = Input::instance()->get("limit");
@ -246,4 +247,5 @@ class photoannotation_Controller extends Controller {
}
print implode("\n", $users);
}
}
}