summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-03-07 19:25:37 +0100
committerGitHub <noreply@github.com>2024-03-07 19:25:37 +0100
commit4334f544951b2bc658e513e46d4e4e6308d48822 (patch)
treea98567e3bbd8bfd5cf8cfe136715edf851978227 /lib
parent55389024438cab9e6a5bb2c05161250f7753b3f4 (diff)
parent55269b07c918b1af9b0b5d4807e66bb8d970f318 (diff)
Merge pull request #11743 from nextcloud/bugfix/noid/allow-favoriting-and-notification-settings
fix(federation): Allow setting notification level and favoriting
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/RoomController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 78cb5b55f..f02451e2d 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -691,6 +691,7 @@ class RoomController extends AEnvironmentAwareController {
*
* 200: Successfully added room to favorites
*/
+ #[FederationSupported]
#[NoAdminRequired]
#[RequireLoggedInParticipant]
public function addToFavorites(): DataResponse {
@@ -705,6 +706,7 @@ class RoomController extends AEnvironmentAwareController {
*
* 200: Successfully removed room from favorites
*/
+ #[FederationSupported]
#[NoAdminRequired]
#[RequireLoggedInParticipant]
public function removeFromFavorites(): DataResponse {
@@ -722,6 +724,7 @@ class RoomController extends AEnvironmentAwareController {
* 200: Notification level updated successfully
* 400: Updating notification level is not possible
*/
+ #[FederationSupported]
#[NoAdminRequired]
#[RequireLoggedInParticipant]
public function setNotificationLevel(int $level): DataResponse {