From 4da12bad1928b29720130c6491278a1bed4ffd84 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 17 Aug 2023 11:48:29 +0200 Subject: Add the attribute Signed-off-by: Joas Schilling --- ...eParticipantOrLoggedInAndListedConversation.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/Middleware/Attribute/lib/Middleware/Attribute/RequireParticipantOrLoggedInAndListedConversation.php diff --git a/lib/Middleware/Attribute/lib/Middleware/Attribute/RequireParticipantOrLoggedInAndListedConversation.php b/lib/Middleware/Attribute/lib/Middleware/Attribute/RequireParticipantOrLoggedInAndListedConversation.php new file mode 100644 index 000000000..a8ea8833c --- /dev/null +++ b/lib/Middleware/Attribute/lib/Middleware/Attribute/RequireParticipantOrLoggedInAndListedConversation.php @@ -0,0 +1,35 @@ + + */ + +declare(strict_types=1); + +/** + * @copyright Copyright (c) 2023 Joas Schilling + * + * @author Joas Schilling + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +namespace OCA\Talk\Middleware\Attribute; + +use Attribute; + +#[Attribute(Attribute::TARGET_METHOD)] +class RequireParticipantOrLoggedInAndListedConversation extends RequireRoom { +} -- cgit v1.2.3