Improve error message
This commit is contained in:
+3
-3
@@ -145,15 +145,15 @@ module Precious
|
|||||||
end
|
end
|
||||||
|
|
||||||
get %r{/(edit|create)/custom\.(js|css)} do
|
get %r{/(edit|create)/custom\.(js|css)} do
|
||||||
forbid
|
forbid('Changing this resource is not allowed.')
|
||||||
end
|
end
|
||||||
|
|
||||||
post %r{/(deleteFile|rename|edit|create)/custom\.(js|css)} do
|
post %r{/(deleteFile|rename|edit|create)/custom\.(js|css)} do
|
||||||
forbid
|
forbid('Changing this resource is not allowed.')
|
||||||
end
|
end
|
||||||
|
|
||||||
post %r{/revert/custom\.(js|css)/.*/.*} do
|
post %r{/revert/custom\.(js|css)/.*/.*} do
|
||||||
forbid
|
forbid('Changing this resource is not allowed.')
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/edit/*' do
|
get '/edit/*' do
|
||||||
|
|||||||
Reference in New Issue
Block a user