Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
"MDL-23917, fixed ignore_premission logic"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Aug 26, 2010
1 parent d45c1ee commit a85265f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comment/comment_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@

$action = optional_param('action', '', PARAM_ALPHA);

$ignore_permission = false;
// XXX: display comments in frontpage without login
if ($context->id != get_context_instance(CONTEXT_COURSE, SITEID)->id
or $action == 'add'
or $action == 'delete') {
$ignore_permission = true;
$ignore_permission = false;
require_login($course, true, $cm);
} else {
$ignore_permission = true;
}
require_sesskey();

Expand Down

0 comments on commit a85265f

Please sign in to comment.