PortableInfoboxBuilder: actually check permissions

This commit is contained in:
Universal Omega 2021-12-30 15:50:10 -07:00 committed by GitHub
parent 5ef16a60b6
commit b0a072ff4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,8 @@ class SpecialPortableInfoboxBuilder extends SpecialPage {
$this->setHeaders();
$out->enableOOUI();
$this->checkPermissions();
$out->addModules( [ 'ext.PortableInfobox.styles', 'ext.PortableInfoboxBuilder' ] );
$out->addHTML(
'<div id="mw-infoboxbuilder" data-title="' . str_replace( '"', '&quot;', $par ) . '">' .