Просмотр исходного кода

Fix "Tests" appearing twice for staff

Alan Lam 1 год назад
Родитель
Сommit
2f25978c82
1 измененных файлов с 4 добавлено и 1 удалено
  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()) {