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

Allow admins to view "Stats" page

Alan Lam 5 лет назад
Родитель
Сommit
98deccfd21
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      controllers/account.php
  2. 1 1
      routes.php

+ 1 - 1
controllers/account.php

@@ -96,7 +96,7 @@ $tests_remaining = 0;
 
 $icons = [];
 
-if($user->isSuperAdmin()) {
+if($user->isAdmin()) {
 	$icons[] = new AccountIcon(__("Stats"), "/account/overview", "tasks-alt");
 }
 

+ 1 - 1
routes.php

@@ -148,6 +148,6 @@ $routes = [
 	"/^account\/reports\/(export-odp|export-pptx)$/" => ["controller" => "reports", "params" => ["action"], "require_user_level" => User::LEVEL_VENUE],
 
 	// Overview
-	"/^account\/overview$/" => ["controller" => "overview", "require_user_level" => User::LEVEL_SUPERADMIN],
+	"/^account\/overview$/" => ["controller" => "overview", "require_user_level" => User::LEVEL_ADMIN],
 
 ];