From ea048f8dad13b7b51496e55836a59df4f163b3fb Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 10 Feb 2017 14:06:50 +0800 Subject: [PATCH] DNN-9352: set AddUser always be true when not authenticated. --- .../Library/Entities/Modules/UserUserControlBase.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DNN Platform/Library/Entities/Modules/UserUserControlBase.cs b/DNN Platform/Library/Entities/Modules/UserUserControlBase.cs index 4ad35072d09..cefb4892911 100644 --- a/DNN Platform/Library/Entities/Modules/UserUserControlBase.cs +++ b/DNN Platform/Library/Entities/Modules/UserUserControlBase.cs @@ -191,6 +191,12 @@ public void OnUserUpdateError(UserUpdateErrorArgs e) #endregion + #region "Properties" + + protected override bool AddUser => !Request.IsAuthenticated || base.AddUser; + + #endregion + #region Nested type: BaseUserEventArgs /// -----------------------------------------------------------------------------