Building the form after checking the permissions and the login status allows for the save usage of `WCF::getUser()` as a logged-in user.
* Abstract implementation of a form using the form builder API.
*
* @author Matthias Schmidt
- * @copyright 2001-2019 WoltLab GmbH
+ * @copyright 2001-2020 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Form
* @since 5.2
* @var IFormDocument
*/
public $form;
-
+
/**
* name of the form document class
* @var string
/**
* @inheritDoc
*/
- public function show() {
- $this->buildForm();
+ public function checkPermissions() {
+ parent::checkPermissions();
- parent::show();
+ $this->buildForm();
}
/**