diff --git a/OpenContent/Components/Datasource/DnnUsersDataSource.cs b/OpenContent/Components/Datasource/DnnUsersDataSource.cs index cc4a68fb..272faa14 100644 --- a/OpenContent/Components/Datasource/DnnUsersDataSource.cs +++ b/OpenContent/Components/Datasource/DnnUsersDataSource.cs @@ -249,7 +249,7 @@ public override void Add(DataSourceContext context, Newtonsoft.Json.Linq.JToken { user.DisplayName = user.FirstName + " " + user.LastName; } - user.Membership.Approved = true; //chkAuthorize.Checked; + user.Membership.Approved = data["Approved"] != null ? ((bool)(data["Approved"] as JValue)?.Value) : true; var newUser = user; var createStatus = UserController.CreateUser(ref newUser); bool notify = true;