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/09/24 00:54:08 UTC

[whimsy] branch master updated: allow the secretary (and ONLY the secretary) to edit reports after the meeting is complete.

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 27be39c  allow the secretary (and ONLY the secretary) to edit reports after the meeting is complete.
27be39c is described below

commit 27be39c5611e8f9a70653ea9aadfd19f169bcb06
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Sep 23 20:53:34 2017 -0400

    allow the secretary (and ONLY the secretary) to edit reports
    after the meeting is complete.
---
 www/board/agenda/views/models/agenda.js.rb | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index 9bc99c6..f2ccff2 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -409,13 +409,15 @@ class Agenda
 
     list << {button: Attend} if @title == 'Roll Call'
 
-    if @attach =~ /^(\d|7?[A-Z]+|4[A-Z])$/ and not Minutes.complete
-      if self.missing
-        list << {form: Post, text: 'post report'} 
-      elsif @attach =~ /^7\w/
-        list << {form: Post, text: 'edit resolution'} 
-      else
-        list << {form: Post, text: 'edit report'} 
+    if @attach =~ /^(\d|7?[A-Z]+|4[A-Z])$/
+      if Server.role == :secretary or not Minutes.complete
+	if self.missing
+	  list << {form: Post, text: 'post report'}
+	elsif @attach =~ /^7\w/
+	  list << {form: Post, text: 'edit resolution'}
+	else
+	  list << {form: Post, text: 'edit report'}
+	end
       end
     end
 

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