This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch mod-gui in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit bc4cb42f2d0557d0939ccbc5a16f67e584ec73dd Author: Sebb <[email protected]> AuthorDate: Wed Jan 9 18:13:42 2019 +0000 Use public marker --- www/moderation/desk/models/mailbox.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/moderation/desk/models/mailbox.rb b/www/moderation/desk/models/mailbox.rb index e7fcf1a..a1a3c35 100644 --- a/www/moderation/desk/models/mailbox.rb +++ b/www/moderation/desk/models/mailbox.rb @@ -29,6 +29,7 @@ class Mailbox @name = name.split('.').first @mbox = "#{ARCHIVE}/#{name}" end + @@test ||= object_id end # centralise the name generation @@ -180,7 +181,7 @@ class Mailbox # Is the message visible to the caller? # e.g. private and security lists are generally not visible to all def self.message_visible?(message) - message and not %w(private security).include? message[:list] # TODO this is just a test + message[:public] # || ASF member || PMC member end def message_active?(status)
