mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -04:00
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:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user