Remove obsolete check for `->canRead()` in ConversationMessageAction::validateContainer()
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 18 Jan 2022 14:48:22 +0000 (15:48 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 18 Jan 2022 14:48:22 +0000 (15:48 +0100)
files/lib/data/conversation/message/ConversationMessageAction.class.php

index 6118f93a5daa45dad337e649b2893b53accfb2e5..65ff39df0beca32c0a7c83a412106d73262fbc5a 100644 (file)
@@ -551,7 +551,7 @@ class ConversationMessageAction extends AbstractDatabaseObjectAction implements
             throw new PermissionDeniedException();
         }
         $container->loadUserParticipation();
-        if (!$container->canRead() || !$container->canReply()) {
+        if (!$container->canReply()) {
             throw new PermissionDeniedException();
         }
     }