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 <[email protected]>
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
['"[email protected]" <[email protected]>'].

Reply via email to