From: moodler Date: Mon, 3 Sep 2007 08:39:34 +0000 (+0000) Subject: Don't allow guest users to follow tag links X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cb1e9c74639160e8c162c0c084b18be7b43d4d47;p=moodle.git Don't allow guest users to follow tag links --- 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);