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");
|
||||
@ -247,3 +248,4 @@ class photoannotation_Controller extends Controller {
|
||||
print implode("\n", $users);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user