Hi,
My Admin users do not see CSVimport plugin when they access admin, when I checked the function.php in the plugin I saw the following:
Any reason why this Hack happen to deny Admin from Csv use?
thanks
Nancy
can I take out the deny to allow admin to access the Csv?
Can I allow Contributor too to access the Csv?
function csv_import_define_acl($acl)
{
// only allow super users and admins to import csv files
$acl->loadResourceList(array(
'CsvImport_Index' => array(
'index',
'map-columns',
'undo-import',
'clear-history',
'browse'
)
));
// Hack to disable CRUD actions.
$acl->deny(null, 'CsvImport_Index', array('show', 'add', 'edit', 'delete'));
$acl->deny('admin', 'CsvImport_Index');
}