Merge pull request #924 from rtrvrtg/patch-1
Fix wiki_options errors for hosted Gollum instances.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user