From 1c40b5e570c40335b7198e8d24b7686ec754bce6 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Fri, 8 Apr 2005 04:31:48 +0000 Subject: [PATCH] Fixed an incompatibility with 0.9 storages that showed up only when you would try to edit a web --- app/models/wiki_service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/wiki_service.rb b/app/models/wiki_service.rb index 87154f60..8cf54644 100644 --- a/app/models/wiki_service.rb +++ b/app/models/wiki_service.rb @@ -15,7 +15,8 @@ module AbstractWikiService attr_reader :webs, :system def authenticate(password) - password == (@system[:password] || 'instiki') + # system['password'] variant is for compatibility with storages from older versions + password == (@system[:password] || @system['password'] || 'instiki') end def create_web(name, address, password = nil)