whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] 03/04: Use public marker
Date Wed, 09 Jan 2019 21:59:30 GMT
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 18888fb85d66737533f92ddc4388c78b9c3571d5
Author: Sebb <sebb@apache.org>
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)


Mime
View raw message