Remove duplication checking for the wiki page name temporarily.

This commit is contained in:
takezoe
2013-05-03 16:13:39 +09:00
parent 8f6b1d95dc
commit fc8bd7d3a6

View File

@@ -98,8 +98,8 @@ class WikiController extends ControllerBase {
def validate(name: String, value: String): Option[String] = {
if(!value.matches("^[a-zA-Z0-9\\-_]+$")){
Some("Page name contains invalid character.")
} else if(WikiUtil.getPageList(params("owner"), params("repository")).contains(value)){
Some("Page already exists.")
// } else if(WikiUtil.getPageList(params("owner"), params("repository")).contains(value)){
// Some("Page already exists.")
} else {
None
}