From 9162f641c73b83cbb371c46669110c3ef6d07304 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 9 Jan 2013 01:34:09 +0100 Subject: [PATCH] Fixed permissions --- .../data/conversation/message/ConversationMessage.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/lib/data/conversation/message/ConversationMessage.class.php b/files/lib/data/conversation/message/ConversationMessage.class.php index fd366b1..dcd7097 100644 --- a/files/lib/data/conversation/message/ConversationMessage.class.php +++ b/files/lib/data/conversation/message/ConversationMessage.class.php @@ -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 -- 2.20.1