summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-06 15:45:03 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-06 15:45:03 -0700
commit097ef934c6fe188cc368905ee72b7cca6ad2f755 (patch)
tree75e92a4edf717f2a6828a802f45485af06af3c71 /modules/comment/helpers/comment.php
parentc4d85721fc0a3b9aad45451fb917d6e23b804c05 (diff)
parentaeee88031fed7029c3320800d237b69993e8b6d4 (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/comment/helpers/comment.php')
-rw-r--r--modules/comment/helpers/comment.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index 94b14d0d..92a286c7 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -60,5 +60,10 @@ class comment_Core {
}
return $form;
}
+
+ static function can_comment() {
+ return !identity::active_user()->guest ||
+ module::get_var("comment", "access_permissions") == "everybody";
+ }
}