From 309a2f497f9edf1ec8b085f67e12f44ce3db111e Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 1 Sep 2011 00:36:38 +0100 Subject: [PATCH] only admins should replace images (possibly people should be allowed to replace their own too? I'm erring on the side of caution for now though) --- ext/upload/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/upload/main.php b/ext/upload/main.php index 38ed4754..890e10f8 100644 --- a/ext/upload/main.php +++ b/ext/upload/main.php @@ -79,7 +79,7 @@ class Upload implements Extension { } // check if the user is an administrator and can upload files. - if (!$user->is_admin() && !$this->can_upload($user)) { + if (!$user->is_admin()) { $this->theme->display_permission_denied($page); } else