From 4687480272cb3f77463cd0f3e77cb44218d270d6 Mon Sep 17 00:00:00 2001 From: juan-cortizas-ponte Date: Wed, 8 Apr 2020 15:23:02 +0200 Subject: [PATCH] hide buttons for admin level actions on reports tab view --- main/mySpace/index.php | 1 + main/template/default/my_space/index.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/mySpace/index.php b/main/mySpace/index.php index 49b3723d80..76ed6ae1f9 100755 --- a/main/mySpace/index.php +++ b/main/mySpace/index.php @@ -298,6 +298,7 @@ $view->assign( $view->assign('studentboss', STUDENT_BOSS); $view->assign('drh', DRH); $view->assign('stats', $stats); +$view->assign('isPlatformAdmin', $is_platform_admin); $form = new FormValidator( 'search_user', diff --git a/main/template/default/my_space/index.tpl b/main/template/default/my_space/index.tpl index 47e2921a83..65091dcbc2 100644 --- a/main/template/default/my_space/index.tpl +++ b/main/template/default/my_space/index.tpl @@ -107,7 +107,7 @@ - {% if _u.status == 1 %} + {% if _u.status == 1 and isPlatformAdmin %} @@ -154,7 +154,7 @@ {{ 'FollowedSessions' | get_lang }} - {% if _u.status == 1 %} + {% if _u.status == 1 and isPlatformAdmin %}