Merge pull request #924 from rtrvrtg/patch-1

Fix wiki_options errors for hosted Gollum instances.
This commit is contained in:
Dawa Ometto
2014-12-29 12:31:39 +01:00
+2 -2
View File
@@ -7,7 +7,7 @@ module Precious
def call(env) def call(env)
@env = env @env = env
# Blocks all potentially editable pages. Use EditingAuth::whitelist_pages to unblock pages. # Blocks all potentially editable pages. Use EditingAuth::whitelist_pages to unblock pages.
unless (env["REQUEST_METHOD"] == "GET") || App::settings.wiki_options[:allow_editing] unless (env["REQUEST_METHOD"] == "GET") || @app.settings.wiki_options[:allow_editing]
return block unless excluded_page? return block unless excluded_page?
end end
@app.call(env) @app.call(env)
@@ -31,4 +31,4 @@ module Precious
return ["/compare/"] return ["/compare/"]
end end
end end
end end