diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index bf9c629c..eb8b2934 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -145,15 +145,15 @@ module Precious end get %r{/(edit|create)/custom\.(js|css)} do - forbid + forbid('Changing this resource is not allowed.') end post %r{/(deleteFile|rename|edit|create)/custom\.(js|css)} do - forbid + forbid('Changing this resource is not allowed.') end post %r{/revert/custom\.(js|css)/.*/.*} do - forbid + forbid('Changing this resource is not allowed.') end get '/edit/*' do