From ff52933320e56ee6b883b6052e57ae288d332c91 Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Wed, 3 Oct 2018 22:19:39 +0200 Subject: [PATCH] Improve error message --- lib/gollum/app.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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