If you wrap it all in a <!-- IF U_ACP -->, does that really matter? Unless of course your extension has some seriously dangerous functionality.Mess wrote:I just realized that by moving things out of the ACP you are at the same time removing a layer of security. Namely the extra ACP login.
So it would probably be a bad idea to move sensitive menus outside the ACP.
Code: Select all
if (!$this->auth->acl_get('a_board'))
{
// Redirect non admins back to the newspage
meta_refresh(10, $this->helper->route('newspage_controller'));
trigger_error('NO_AUTH_OPERATION');
}