Explorar o código

Fix "Tests" appearing twice for staff

Alan Lam hai 1 ano
pai
achega
2f25978c82
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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()) {