mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Don't allow guest users to follow tag links
This commit is contained in:
parent
277fe19dc1
commit
cb1e9c7463
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue