瀏覽代碼

Fix "Tests" appearing twice for staff

Alan Lam 1 年之前
父節點
當前提交
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()) {