I have created a module that allows me to display blocks of links retrieved from an extension.
The permissions for displaying these blocks are configured upstream by the extension.
I would like to disable the ‘Module permissions’ block.

Alternatively, if this is not possible, display a message to warn the administrator that the permissions are already set by the extension and that it is recommended not to change anything in this block.
The current code is very basic.
Code: Select all
public function get_template_side($module_id)
{
if (is_object($this->controller_helpers) && method_exists($this->controller_helpers, 'build_sidebar'))
{
$this->controller_helpers->build_sidebar();
}
return '@gtroph_b3pgtrophlinks/gtroph_links_side.html';
}
public function get_template_acp($module_id)
{
return [
'title' => 'B3P_GTROPH_LINKS',
'vars' => [],
];
}
}