Skip to content

Commit

Permalink
[BF] check user before superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Oct 21, 2022
1 parent 3c7d46f commit 09c43ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/StatisticsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ public function coreBundle( StatisticsRequest $r, CoreBundle $cb ): RedirectResp
"cb" => $cb,
"graph" => $graph,
"category" => $category,
"categories" => Auth::check() && Auth::getUser()->isSuperUser() ? Graph::CATEGORY_DESCS : Graph::CATEGORIES_BITS_PKTS_DESCS,
"categories" => Auth::check() && Auth::getUser() && Auth::getUser()->isSuperUser() ? Graph::CATEGORY_DESCS : Graph::CATEGORIES_BITS_PKTS_DESCS,
]);
}

Expand Down

0 comments on commit 09c43ec

Please sign in to comment.