<?php
/**
* SecureDownloads for Contao
*
* Copyright (c) 2017 Benjamin Roth
*
* @license commercial
*/
/**
* Extend a tl_user_group palette
*/
$GLOBALS['TL_DCA']['tl_user']['palettes']['extend'] = str_replace(array('{account_legend}', '{account_legend:hide}'), '{sec_dl_legend:hide},sec_dl_access;{account_legend}', $GLOBALS['TL_DCA']['tl_user']['palettes']['extend']);
$GLOBALS['TL_DCA']['tl_user']['palettes']['custom'] = str_replace(array('{account_legend}', '{account_legend:hide}'), '{sec_dl_legend:hide},sec_dl_access;{account_legend}', $GLOBALS['TL_DCA']['tl_user']['palettes']['custom']);
/**
* Add fields to tl_user_group
*/
$GLOBALS['TL_DCA']['tl_user']['fields']['sec_dl_access'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_user']['sec_dl_access'],
'exclude' => true,
'filter' => true,
'inputType' => 'checkbox',
'sql' => "char(1) NOT NULL default ''"
);