Skip to content

Commit

Permalink
System maintained lists must be OK
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Sep 15, 2024
1 parent 9863415 commit 9ad0b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/whimsy/asf/mail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def self.canread(listid, member=false, pmc_chair=false, ldap_pmcs=[])
flags = getflags(listid)
return nil if flags.nil? # Not a known list
return true unless isModSub?(flags) # subscription not needed
return true if listid == 'committers@apache.org' # any more like this?
return true if self._committers_allowed().include?(listid)
return true if self._cannot_unsub.include? listid # must be system maintained, so assume OK
return true if self._committers_allowed().include?(listid)
return true if member # They can read anything
return true if pmc_chair and self._chairs_allowed.include? listid
return true if ldap_pmcs and ldap_pmcs.include? listid.split('@')[-1].sub('.apache.org', '')
Expand Down

0 comments on commit 9ad0b6c

Please sign in to comment.