Improve error message

This commit is contained in:
Dawa Ometto
2018-10-03 22:19:39 +02:00
parent 84c01bb69b
commit ff52933320
+3 -3
View File
@@ -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