You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/12/20 16:39:41 UTC

[whimsy] branch master updated: Remove 'approve' button from President's report

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f3b736  Remove 'approve' button from President's report
6f3b736 is described below

commit 6f3b7366a6848b7947c6fa8d13b4dff1f5976e36
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Dec 20 11:39:21 2017 -0500

    Remove 'approve' button from President's report
---
 www/board/agenda/views/models/agenda.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index a1899f9..4b2e2d0 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -443,7 +443,7 @@ class Agenda
 
     if User.role == :director
       unless self.missing or @comments === undefined or Minutes.complete
-        list << {button: Approve} 
+        list << {button: Approve} if @attach =~ /^(3[A-Z]|\d+|[A-Z]+)$/
       end
 
     elsif User.role == :secretary

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].