Skip to content

Commit 8f00274

Browse files
committed
Disallow editing of templates outside of template groups
1 parent 7396fdf commit 8f00274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function readParameters()
4646
);
4747
$this->formObject = new Template($queryParameters['id']);
4848

49-
if (!$this->formObject->getObjectID()) {
49+
if (!$this->formObject->getObjectID() || $this->formObject->templateGroupID === null) {
5050
throw new IllegalLinkException();
5151
}
5252
} catch (MappingError) {

0 commit comments

Comments
 (0)