Allow regular users to upload, too.

This commit is contained in:
Aaron committed 2017-11-09 17:00:35 +01:00
1 parent 6d07a47132
commit 7c19265767
1 file changed
+2 -2
+2 -2
View File
@@ -10,8 +10,8 @@ class UploadMedia extends HTMLController
{
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($_REQUEST['tag']))