summaryrefslogtreecommitdiffstats
path: root/modules-available/exams
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-09 16:56:04 +0200
committerSimon Rettberg2018-04-09 16:56:04 +0200
commit24815e16087b4b1b64e9f380d45d411af32daf42 (patch)
treeb41206d3cd86ed840d0841826d7c2dc492ed788e /modules-available/exams
parent[news] Ask for confirmation when deleting entry (diff)
downloadslx-admin-24815e16087b4b1b64e9f380d45d411af32daf42.tar.gz
slx-admin-24815e16087b4b1b64e9f380d45d411af32daf42.tar.xz
slx-admin-24815e16087b4b1b64e9f380d45d411af32daf42.zip
Permissions: Consistency: Make all pages require at least one permission to be accessible
Closes #3340
Diffstat (limited to 'modules-available/exams')
-rw-r--r--modules-available/exams/page.inc.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php
index 51975052..15640a73 100644
--- a/modules-available/exams/page.inc.php
+++ b/modules-available/exams/page.inc.php
@@ -441,16 +441,9 @@ class Page_Exams extends Page
protected function doRender()
{
- if (Request::isPost()) {
- $examid = Request::post('examid', 0, 'int');
- } else if (Request::isGet()) {
- $examid = Request::get('examid', 0, 'int');
- } else {
- die('Neither Post nor Get Request send.');
- }
-
if ($this->action === "show") {
+ User::assertPermission('exams.view');
// General title and description
Render::addTemplate('page-main-heading');
// List of defined exam periods