From cb1e9c74639160e8c162c0c084b18be7b43d4d47 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 3 Sep 2007 08:39:34 +0000 Subject: [PATCH] Don't allow guest users to follow tag links --- user/tag.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/user/tag.php b/user/tag.php index a3bf0ce7db..3a90eb76e1 100644 --- a/user/tag.php +++ b/user/tag.php @@ -11,6 +11,15 @@ if (empty($CFG->usetags)) { error('Tags are disabled!'); } +if (!isguestuser()) { + print_error('noguest'); +} + +if (!confirm_sesskey()) { + print_error('sesskey'); +} + + switch ($action) { case 'addinterest': $id = optional_param('id', 0, PARAM_INT); -- 2.39.5