From a5aeafc80ed5cb3085b52ae55a8b317f3c7b8cdf Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Sun, 7 Feb 2010 10:32:13 +0000 Subject: [PATCH] Fixed issue in AdminGroups.aspx: group name existence check was done agains the users instead of groups. --- AssemblyVersion.cs | 4 ++-- WebApplication/AdminGroups.aspx.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index b0aacf8..84baaa8 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1.473")] -[assembly: AssemblyFileVersion("3.0.1.473")] +[assembly: AssemblyVersion("3.0.1.474")] +[assembly: AssemblyFileVersion("3.0.1.474")] diff --git a/WebApplication/AdminGroups.aspx.cs b/WebApplication/AdminGroups.aspx.cs index 3f96d19..e049fa1 100644 --- a/WebApplication/AdminGroups.aspx.cs +++ b/WebApplication/AdminGroups.aspx.cs @@ -108,7 +108,7 @@ namespace ScrewTurn.Wiki { } protected void cvName_ServerValidate(object sender, ServerValidateEventArgs e) { - e.IsValid = Users.FindUser(txtName.Text) == null; + e.IsValid = Users.FindUserGroup(txtName.Text) == null; } protected void btnNewGroup_Click(object sender, EventArgs e) {