isAdminForModule('Users') ) { //instead of just dying here with unauthorized access will send the user back to his/her settings SugarApplication::redirect('index.php?module=Users&action=DetailView&record='.$GLOBALS['current_user']->id); } $this->lv = new ListViewSmarty(); $this->lv->delete = false; $this->lv->email = false; } }