Skip to content

Commit

Permalink
Merge pull request #237 from sachatrauwaen/feature/236-Users-Datasour…
Browse files Browse the repository at this point in the history
…ce-IsApproved

fixes #236
  • Loading branch information
skamphuis authored May 15, 2024
2 parents dca3dfd + dde178e commit b2707cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenContent/Components/Datasource/DnnUsersDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b2707cd

Please sign in to comment.