Fixed issue in AdminGroups.aspx: group name existence check was done agains the users instead of groups.

This commit is contained in:
Dario Solera 2010-02-07 10:32:13 +00:00
parent f5d5317719
commit a5aeafc80e
2 changed files with 3 additions and 3 deletions

View file

@ -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")]

View file

@ -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) {