From 44b2f5dfe3eaf4c2bbfee8bdf51bd68f474d2820 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 6 Aug 2020 10:52:18 +0200 Subject: [PATCH] Minor - Plugins: Zoom - disable user in activity Zoom doesnt send chamilo user id BT#17288 --- plugin/zoom/endpoint.php | 1 - plugin/zoom/view/activity.tpl | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/plugin/zoom/endpoint.php b/plugin/zoom/endpoint.php index 3f9555ad44..5de3a96ad1 100644 --- a/plugin/zoom/endpoint.php +++ b/plugin/zoom/endpoint.php @@ -50,7 +50,6 @@ if ($meeting) { $activity->setName($action); $activity->setType($objectType); $activity->setEvent(json_encode($object)); - $activity->setUser(api_get_user_entity(api_get_user_id())); } switch ($objectType) { diff --git a/plugin/zoom/view/activity.tpl b/plugin/zoom/view/activity.tpl index 1138f1e473..89f912d3a0 100644 --- a/plugin/zoom/view/activity.tpl +++ b/plugin/zoom/view/activity.tpl @@ -11,7 +11,7 @@ {{ 'Type'|get_lang }} {{ 'Action'|get_plugin_lang('ZoomPlugin') }} - {{ 'User'|get_lang }} +{# {{ 'User'|get_lang }}#} {{ 'Date'|get_lang }} {{ 'Details'|get_lang }} @@ -28,15 +28,15 @@ {{ activity.createdAt | api_convert_and_format_date(3)}} - - {% if _u.is_admin %} - - {{ activity.user.firstname }} {{ activity.user.lastname }} {{ activity.user.username }} - - {% else %} - {{ activity.user.firstname }} {{ activity.user.lastname }} ({{ activity.user.username }}) - {% endif %} - +{# #} +{# {% if _u.is_admin %}#} +{# #} +{# {{ activity.user.firstname }} {{ activity.user.lastname }} ({{ activity.user.username }})#} +{# #} +{# {% else %}#} +{# {{ activity.user.firstname }} {{ activity.user.lastname }} ({{ activity.user.username }})#} +{# {% endif %}#} +{# #} {% if activity.eventDecoded.registrant %} {{ 'User' | get_lang }} :