getAuthCanViewChart() == 0 && !User::canUpload()) { forbiddenPage("Only video uploaders can see charts"); } if ($config->getAuthCanViewChart() == 1) { // mode 1 means selected users see admin-charts. if (empty($_SESSION['user']['canViewChart'])) { forbiddenPage("Admin did not give you right to see the chart"); } } } ?>