I want to set permissions for back end users for anystores' tables, i.e. 'normal' users must not delete a category or a single store. I don't see a way to achieve this with any standard settings?
public function checkPermission()
{
if ($this->User->isAdmin)
{
return;
}
// Check current action
switch (Input::get('act'))
{
case 'delete':
case 'deleteAll':
if (strlen(Input::get('act')))
{
$this->log('Not enough permissions to '.Input::get('act').' anystores store', __METHOD__, TL_ERROR);
$this->redirect('contao/main.php?act=error');
}
break;
}
}
Still, this does not remove the action-icon and is harcoded.
I want to set permissions for back end users for anystores' tables, i.e. 'normal' users must not delete a category or a single store. I don't see a way to achieve this with any standard settings?
My current solution is to add a callback
and to forbid delete/deleteAll for non-admins:
Still, this does not remove the action-icon and is harcoded.