From ae16482e619cc9e446fba41bfe3cbd1be67ab95a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Thu, 15 Nov 2018 10:05:11 +0100 Subject: [PATCH] only allow to add user if mail is set - backend throws error if mail is not set --- scm-ui/src/users/components/UserForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm-ui/src/users/components/UserForm.js b/scm-ui/src/users/components/UserForm.js index c2a8cfd089..0f2407f192 100644 --- a/scm-ui/src/users/components/UserForm.js +++ b/scm-ui/src/users/components/UserForm.js @@ -73,7 +73,8 @@ class UserForm extends React.Component { this.state.passwordConfirmationError || this.state.displayNameValidationError || this.isFalsy(user.name) || - this.isFalsy(user.displayName) + this.isFalsy(user.displayName) || + this.isFalsy(user.mail) ); };