Alan Lam před 3 roky
rodič
revize
b47d9b4850
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5 2
      controllers/account.php

+ 5 - 2
controllers/account.php

@@ -107,8 +107,6 @@ if($user->canAccessCustomers()) {
 
 if($user->canAccessMapOverview()) {
 	$icons[] = new AccountIcon(__("Map Overview"), "/account/map-overview", "map-marked");
-	$icons[] = new AccountIcon(__("Failed"), "/account/map-overview?filter=failed-only", "times-circle");
-	$icons[] = new AccountIcon(__("Untested"), "/account/map-overview?filter=untested-only", "question-circle");
 }
 
 if($user->canAccessUsers()) {
@@ -241,6 +239,11 @@ if($rejected_test_count) {
 	$to_do[] = $icon;
 }
 
+if($user->canAccessMapOverview()) {
+	$to_do[] = new AccountIcon(__("Failed"), "/account/map-overview?filter=failed-only", "times-circle");
+	$to_do[] = new AccountIcon(__("Untested"), "/account/map-overview?filter=untested-only", "question-circle");
+}
+
 $referrals = $user->getReferrals();
 
 View::includeOnce("header", compact("page_title"));