From a5be96e3a5d60494b355d1b6c65b49dc5054c798 Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Mon, 2 Jul 2018 19:16:21 +0200 Subject: [PATCH] Remove the tracking scripts for the tutors users --- backend/TE/TakeExercise.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/TE/TakeExercise.php b/backend/TE/TakeExercise.php index 393d6e8..760490d 100644 --- a/backend/TE/TakeExercise.php +++ b/backend/TE/TakeExercise.php @@ -64,7 +64,7 @@ class ExerciseFrame extends Node $rs->getPage()->addScript( $base . 'js/pianos4_help.js' ); $rs->getPage()->addScript( $base . 'js/pinger.js' ); - if( Application::get( 'viewTracker' ) ) + if( Application::get( 'viewTracker' ) && ! $_SESSION[ 'user' ][ 'isadmin' ] ) $rs->getPage()->addScript( $base . 'js/viewTracker.js' ); if( $_SESSION[ 'user' ][ 'isadmin' ] ) -- GitLab