if (!user.IsExternalUser) { if (!companies.ContainsKey(user.CompanyTitle))…
- User
if (!user.IsExternalUser) { if (!companies.ContainsKey(user.CompanyTitle)) logger.Warn($"{user.Login}: Неизвестная компания {user.CompanyTitle}"); else { var company = companies[user.CompanyTitle]; user.Rights = company.DefaultRights; user.CompanyId = company.Id; }
codelogger.Info($"Новый сотрудник: {user.Login}"); } - Assistant
// This code checks if the user is not an external user and if their company exists in the dictionary 'companies'. // If the company exists, it sets the user's rights to the company's default rights, and sets the user's company ID to the company's ID. // It also logs a warning if the company is unknown and logs an information message for a new employee. // If the user is an external user, this code will not apply.
if (!user.IsExternalUser) { if (!companies.ContainsKey(user.CompanyTitle)) logger.Warn($"{user.Login}: Unknown company {user.CompanyTitle}"); else { var company = companies[user.CompanyTitle]; user.Rights = company.DefaultRights; user.CompanyId = company.Id; }
codelogger.Info($"New employee: {user.Login}");}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.