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/10/20 23:42:22 UTC

[whimsy] branch master updated: allow ppmcs to be created

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 cf71e33  allow ppmcs to be created
cf71e33 is described below

commit cf71e33d5694204950a017daa2e1be7e31133c65
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Oct 20 19:42:07 2017 -0400

    allow ppmcs to be created
---
 www/roster/views/actions/ppmc.json.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/roster/views/actions/ppmc.json.rb b/www/roster/views/actions/ppmc.json.rb
index f529d19..8ed8510 100644
--- a/www/roster/views/actions/ppmc.json.rb
+++ b/www/roster/views/actions/ppmc.json.rb
@@ -14,7 +14,9 @@ if env.password
     raise ArgumentError.new("ids=#{@ids}") 
   end
 
-  raise ArgumentError.new("project=#{@project}") unless project
+  unless @action == 'add' and @targets.include? 'ldap'
+    raise ArgumentError.new("project=#{@project}") unless project
+  end
 
   # update LDAP
   if %w(ppmc committer icommit).any? {|target| @targets.include? target}

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