Restrict positions for UserListBox
authorMarcel Werk <burntime@woltlab.com>
Fri, 16 Feb 2024 13:20:58 +0000 (14:20 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 16 Feb 2024 13:20:58 +0000 (14:20 +0100)
The template is only designed for display in the sidebar.

wcfsetup/install/files/lib/system/box/UserListBoxController.class.php

index 4ab76207848a0ccf3d749aea2488ed8c4f805ff1..ca9a90e3511d98d8e382c5230afd9b44770ee028 100644 (file)
@@ -39,6 +39,11 @@ class UserListBoxController extends AbstractDatabaseObjectListBoxController
      */
     protected $conditionDefinition = 'com.woltlab.wcf.box.userList.condition';
 
+    /**
+     * @inheritDoc
+     */
+    protected static $supportedPositions = ['sidebarLeft', 'sidebarRight'];
+
     /**
      * @inheritDoc
      */