$isInvoicer = $this->usertype=='admin'; $userId = LegacyHelper::getUserId(); $isAdmin = ($userId && LegacyHelper::isAdminUser($userId)); $isGroupManager = $this->isGroupManager; ?>