forked from GNUsocial/gnu-social
For good measure, don't return autocomplete results when not logged in.
This commit is contained in:
parent
6662141328
commit
4b4b763255
@ -87,7 +87,15 @@ class AutocompleteAction extends Action
|
||||
|
||||
function prepare($args)
|
||||
{
|
||||
// If we die, show short error messages.
|
||||
StatusNet::setApi(true);
|
||||
|
||||
parent::prepare($args);
|
||||
|
||||
$cur = common_current_user();
|
||||
if (!$cur) {
|
||||
throw new ClientException('Access forbidden', true);
|
||||
}
|
||||
$this->groups=array();
|
||||
$this->users=array();
|
||||
$q = $this->arg('q');
|
||||
|
Loading…
Reference in New Issue
Block a user