Pārlūkot izejas kodu

Fix "Tests" appearing twice for staff

Alan Lam 1 gadu atpakaļ
vecāks
revīzija
2f25978c82
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      controllers/account.php

+ 4 - 1
controllers/account.php

@@ -164,7 +164,10 @@ if($user->canAccessReports()) {
 
 if($user->canAccessTestResults()) {
 	$icons[] = new AccountIcon(__("Test Results"), "/account/test-results", "clipboard-list-check");
-	$icons[] = new AccountIcon(__("Tests"), "/account/tests", "clipboard-check");
+
+	if($user->isCustomer()) {
+		$icons[] = new AccountIcon(__("Tests"), "/account/tests", "clipboard-check");
+	}
 }
 
 if($user->canAccessTests()) {