Fixed quick reply not properly handling lacking attachment permissions
authorAlexander Ebert <ebert@woltlab.com>
Sun, 18 Jan 2015 10:40:47 +0000 (11:40 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 18 Jan 2015 10:40:47 +0000 (11:40 +0100)
wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php

index dc78c67ba615526baa75bcdd41157bb478b761c4..fce35eaf73bb9068750d6c86ac91e4bb91daf729 100644 (file)
@@ -194,7 +194,7 @@ class QuickReplyManager extends SingletonFactory {
                $parameters['data'] = array_merge($additionalFields, $parameters['data']);
                
                // attachment support
-               if (MODULE_ATTACHMENT && $object instanceof IAttachmentMessageQuickReplyAction) {
+               if (MODULE_ATTACHMENT && !empty($parameters['tmpHash']) && $object instanceof IAttachmentMessageQuickReplyAction) {
                        $parameters['attachmentHandler'] = $object->getAttachmentHandler($this->container);
                }