diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-06 15:45:03 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-06 15:45:03 -0700 |
| commit | 097ef934c6fe188cc368905ee72b7cca6ad2f755 (patch) | |
| tree | 75e92a4edf717f2a6828a802f45485af06af3c71 /modules/comment/helpers/comment.php | |
| parent | c4d85721fc0a3b9aad45451fb917d6e23b804c05 (diff) | |
| parent | aeee88031fed7029c3320800d237b69993e8b6d4 (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/comment/helpers/comment.php')
| -rw-r--r-- | modules/comment/helpers/comment.php | 5 |
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"; + } } |
