Don't allow guest users to follow tag links

This commit is contained in:
moodler 2007-09-03 08:39:34 +00:00
parent 277fe19dc1
commit cb1e9c7463

View file

@ -11,6 +11,15 @@ if (empty($CFG->usetags)) {
error('Tags are disabled!'); error('Tags are disabled!');
} }
if (!isguestuser()) {
print_error('noguest');
}
if (!confirm_sesskey()) {
print_error('sesskey');
}
switch ($action) { switch ($action) {
case 'addinterest': case 'addinterest':
$id = optional_param('id', 0, PARAM_INT); $id = optional_param('id', 0, PARAM_INT);