1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

fix add user role in non pro env (#4300)

This commit is contained in:
Leo
2019-11-27 10:45:52 +08:00
committed by Daniel Pan
parent d95b7f49c0
commit 9e7df5f746

View File

@@ -102,7 +102,8 @@ class SysAdminAddUserDialog extends React.Component {
let data = {
email: email.trim(),
name: name.trim(),
password: password.trim()
password: password.trim(),
role: '',
};
if (this.props.showRole) {
data.role = role;