diff --git a/src/Resources/contao/dca/tl_license_item.php b/src/Resources/contao/dca/tl_license_item.php index 03c66d8..d8efc7e 100644 --- a/src/Resources/contao/dca/tl_license_item.php +++ b/src/Resources/contao/dca/tl_license_item.php @@ -133,7 +133,7 @@ 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('doNotCopy'=>true, 'submitOnChange' => true), - 'sql' => "char(1) NOT NULL default '0'" + 'sql' => "tinyint(1) NOT NULL default '0'", ) ) ); @@ -187,18 +187,6 @@ public function toggleIcon($row, $href, $label, $title, $icon, $attributes) $icon = 'invisible.svg'; } - $objPage = Contao\PageModel::findById($row['pid']); - - if (!$this->User->isAllowed(Contao\BackendUser::CAN_EDIT_ARTICLES, $objPage->row())) - { - if (!$row['published']) - { - $icon = preg_replace('/\.svg$/i', '_.svg', $icon); // see #8126 - } - - return Contao\Image::getHtml($icon) . ' '; - } - return '' . Contao\Image::getHtml($icon, $label, 'data-state="' . (!$row['published'] ? 1 : 0) . '"') . ' '; }