diff options
author | Simon Rettberg | 2018-04-09 16:56:04 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-09 16:56:04 +0200 |
commit | 24815e16087b4b1b64e9f380d45d411af32daf42 (patch) | |
tree | b41206d3cd86ed840d0841826d7c2dc492ed788e /modules-available/exams | |
parent | [news] Ask for confirmation when deleting entry (diff) | |
download | slx-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.php | 9 |
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 |