Make logging in mandatory.

This commit is contained in:
Aaron committed 2017-11-09 17:00:34 +01:00
1 parent bfcbe5aa2e
commit 3587447cc0
8 files changed
+60 -57

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ class ProvideAutoSuggest extends JSONController
{
public function __construct()
{
// Ensure it's just admins at this point.
if (!Registry::get('user')->isAdmin())
// Ensure we're logged in at this point.
if (!Registry::get('user')->isLoggedIn())
throw new NotAllowedException();
if (!isset($_GET['type']))