From 9c52e2c0fb4e04591f743a2eac6513a095e87106 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 16 Feb 2024 14:20:58 +0100 Subject: [PATCH] Restrict positions for UserListBox The template is only designed for display in the sidebar. --- .../files/lib/system/box/UserListBoxController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php index 4ab7620784..ca9a90e351 100644 --- a/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php @@ -39,6 +39,11 @@ class UserListBoxController extends AbstractDatabaseObjectListBoxController */ protected $conditionDefinition = 'com.woltlab.wcf.box.userList.condition'; + /** + * @inheritDoc + */ + protected static $supportedPositions = ['sidebarLeft', 'sidebarRight']; + /** * @inheritDoc */ -- 2.20.1