From ca2b2eb8af2d58ae66ff87a245a3f580d5237736 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 10 May 2011 12:38:25 +0800 Subject: [PATCH] MDL-27456 Fixed typo in comment/lib.php after last refatoring --- comment/lib.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/comment/lib.php b/comment/lib.php index 2bf59795394..184e320f569 100644 --- a/comment/lib.php +++ b/comment/lib.php @@ -127,16 +127,14 @@ class comment { */ protected $totalcommentcount = null; /** - * By default a user must have the generic comment capabilities plus any capabilities the - * component being commented on requires. - * When set to true only the component capabilities are checked, the system capabilities are - * ignored. - * This can be toggled by the component defining a callback in its lib.php e.g. - * function forum_comment_allow_anonymous_access(comment $comment) {} - * Note: On the front page this defaults to true. + * When set to true any user to the system is able to view comments. + * + * This can be set to true by a plugin by implementing a allow_anonymous_access callback. + * By default it is false except on the front page. + * * @var bool */ - protected $ignoresystempermissions = false; + protected $allowanonymousaccess = false; /**#@+ * static variable will be used by non-js comments UI