public function user_delete() { if ($this->inGroup(3, true)) { require_once dirname(__FILE__) . '/resources/user.php'; $user = new UserAction($this->parent); return $user->del(); } else { return new ActionResult($this, '/admin/user/', 1, 'You are not allowed to do that', B_T_FAIL); } }