From 7c19265767b9cbf2cc1ae93a416ebaab04009e39 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 4 Sep 2016 16:26:50 +0200 Subject: [PATCH] Allow regular users to upload, too. --- controllers/UploadMedia.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/UploadMedia.php b/controllers/UploadMedia.php index 5636740..1457131 100644 --- a/controllers/UploadMedia.php +++ b/controllers/UploadMedia.php @@ -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']))