Fixed an incompatibility with 0.9 storages that showed up only when you would try to edit a web
This commit is contained in:
parent
029189d8e9
commit
1c40b5e570
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue