summaryrefslogtreecommitdiffstats
path: root/lib/PublicShareAuth
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-10-24 11:53:56 +0200
committerJoas Schilling <coding@schilljs.com>2023-10-24 11:53:56 +0200
commit7447660e0bba516ea7023f5943d5a77fcaba5a3e (patch)
tree5f9e6f12daa44708bc2505fbf7b49dfa6fad22d8 /lib/PublicShareAuth
parentbff46e52192c28a1172a04f0ee102841282e4df9 (diff)
techdebt: Add constants for room object types
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/PublicShareAuth')
-rw-r--r--lib/PublicShareAuth/Listener.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicShareAuth/Listener.php b/lib/PublicShareAuth/Listener.php
index 93b43a512..5f6691aec 100644
--- a/lib/PublicShareAuth/Listener.php
+++ b/lib/PublicShareAuth/Listener.php
@@ -87,7 +87,7 @@ class Listener {
* @throws RoomNotFoundException
*/
public static function preventExtraUsersFromJoining(Room $room, string $userId): void {
- if ($room->getObjectType() !== 'share:password') {
+ if ($room->getObjectType() !== Room::OBJECT_TYPE_VIDEO_VERIFICATION) {
return;
}
@@ -115,7 +115,7 @@ class Listener {
* @throws RoomNotFoundException
*/
public static function preventExtraGuestsFromJoining(Room $room): void {
- if ($room->getObjectType() !== 'share:password') {
+ if ($room->getObjectType() !== Room::OBJECT_TYPE_VIDEO_VERIFICATION) {
return;
}
@@ -136,7 +136,7 @@ class Listener {
* @throws RoomNotFoundException
*/
public static function preventExtraUsersFromBeingAdded(Room $room, array $participants): void {
- if ($room->getObjectType() !== 'share:password') {
+ if ($room->getObjectType() !== Room::OBJECT_TYPE_VIDEO_VERIFICATION) {
return;
}
@@ -168,7 +168,7 @@ class Listener {
* @param Room $room
*/
public static function destroyRoomOnParticipantLeave(Room $room): void {
- if ($room->getObjectType() !== 'share:password') {
+ if ($room->getObjectType() !== Room::OBJECT_TYPE_VIDEO_VERIFICATION) {
return;
}