Create a UI under Admin > Settings > Comments where you can limit

comments only to registered users.  It's simplistic, but is better
than adding a permission since generally this setting will be used
Gallery-wide.

Fixes ticket #1002
This commit is contained in:
Bharat Mediratta
2010-06-05 23:35:32 -07:00
parent 10895ca529
commit 87fde3f360
8 changed files with 82 additions and 5 deletions

View File

@@ -47,7 +47,8 @@ class comment_installer {
DEFAULT CHARSET=utf8;");
module::set_var("comment", "spam_caught", 0);
module::set_version("comment", 2);
module::set_var("comment", "access_permissions", "everybody");
module::set_version("comment", 3);
}
static function upgrade($version) {
@@ -56,6 +57,11 @@ class comment_installer {
$db->query("ALTER TABLE {comments} CHANGE `state` `state` varchar(15) default 'unpublished'");
module::set_version("comment", 2);
}
if ($version == 2) {
module::set_var("comment", "access_permissions", "everybody");
module::set_version("comment", 3);
}
}
static function uninstall() {