Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sentry: Add user role in user_info object.
Clara Dantasf9cbefac41dc
diff --git a/zproject/sentry.py b/zproject/sentry.pyindex 9a2a03bb84c..bae8bc4da3b 100644--- a/zproject/sentry.py+++ b/zproject/sentry.py@@ -19,6 +19,7 @@ def add_context(event: 'Event', hint: 'Hint') -> 'Event':if user_info.get("id"):user_profile = get_user_profile_by_id(user_info["id"])user_info["realm"] = user_profile.realm.string_id or 'root'+ user_info["role"] = user_profile.get_role_name()return eventdef setup_sentry(dsn: Optional[str], *integrations: Integration) -> None: