whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Don't allow removal of forwarding address
Date Mon, 08 Apr 2019 13:17:38 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb 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 90aaf09  Don't allow removal of forwarding address
90aaf09 is described below

commit 90aaf09ae7e80de82489cb5a7cb24508a03d89f9
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Apr 8 14:16:54 2019 +0100

    Don't allow removal of forwarding address
---
 www/roster/views/actions/email_forward.json.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/roster/views/actions/email_forward.json.rb b/www/roster/views/actions/email_forward.json.rb
index 53143cb..06f8567 100644
--- a/www/roster/views/actions/email_forward.json.rb
+++ b/www/roster/views/actions/email_forward.json.rb
@@ -23,6 +23,10 @@ if @email_forward  # must agree with email_forward.js.rb
     end
   end
 
+  if  @email_forward.empty?
+    _error "Forwarding email address must not be empty!"
+  end
+
   # update LDAP
   unless @dryrun
     _ldap.update do


Mime
View raw message