summaryrefslogtreecommitdiffstats
path: root/lib/Controller/ChatController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ChatController.php')
-rw-r--r--lib/Controller/ChatController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php
index 920e6dd57..c0bb8d628 100644
--- a/lib/Controller/ChatController.php
+++ b/lib/Controller/ChatController.php
@@ -566,7 +566,7 @@ class ChatController extends AEnvironmentAwareController {
$isOwnMessage = $isOwnMessage || ($message->getActorType() === Attendee::ACTOR_BRIDGED && $attendee->getActorId() === MatterbridgeManager::BRIDGE_BOT_USERID);
if (!$isOwnMessage
&& (!$this->participant->hasModeratorPermissions(false)
- || $this->room->getType() === Room::ONE_TO_ONE_CALL)) {
+ || $this->room->getType() === Room::TYPE_ONE_TO_ONE)) {
// Actor is not a moderator or not the owner of the message
return new DataResponse([], Http::STATUS_FORBIDDEN);
}
@@ -620,7 +620,7 @@ class ChatController extends AEnvironmentAwareController {
public function clearHistory(): DataResponse {
$attendee = $this->participant->getAttendee();
if (!$this->participant->hasModeratorPermissions(false)
- || $this->room->getType() === Room::ONE_TO_ONE_CALL) {
+ || $this->room->getType() === Room::TYPE_ONE_TO_ONE) {
// Actor is not a moderator or not the owner of the message
return new DataResponse([], Http::STATUS_FORBIDDEN);
}