Disable user name auto complete if people cloud is deactivated for guest user
This commit is contained in:
parent
714d6730ae
commit
5f5cd93114
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user