Fixed permissions
authorMarcel Werk <burntime@woltlab.com>
Wed, 9 Jan 2013 00:34:09 +0000 (01:34 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 9 Jan 2013 00:34:09 +0000 (01:34 +0100)
files/lib/data/conversation/message/ConversationMessage.class.php

index fd366b13a532c0c5ed86bed324b0ec79dd0a08bc..dcd70972c827d513a872a61a55b66dc5c1f54fd4 100644 (file)
@@ -60,8 +60,8 @@ class ConversationMessage extends DatabaseObject implements IMessage {
                        $attachmentList->getConditionBuilder()->add('attachment.objectID IN (?)', array($this->messageID));
                        $attachmentList->readObjects();
                        $attachmentList->setPermissions(array(
-                               'canDownload' => WCF::getSession()->getPermission('user.blog.canDownloadAttachment'),
-                               'canViewPreview' => WCF::getSession()->getPermission('user.blog.canViewAttachmentPreview')
+                               'canDownload' => true,
+                               'canViewPreview' => true
                        ));
                                
                        // set embedded attachments