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)

This commit is contained in:
Shish 2011-09-01 00:36:38 +01:00
parent f5d08f1585
commit 309a2f497f

View File

@ -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