Added tests for mathjax.config.js permissions. Fixed typo in permission regex.

This commit is contained in:
Bart Kamphorst
2018-12-28 22:57:13 +01:00
parent 59bb48340e
commit e966de6922
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -152,11 +152,11 @@ module Precious
end
end
get %r{/(edit|create)/(custom|mathjax\.config\.)\.(js|css)} do
get %r{/(edit|create)/(custom|mathjax\.config)\.(js|css)} do
forbid('Changing this resource is not allowed.')
end
post %r{/(delete|rename|edit|create)/(custom|mathjax\.config\.)\.(js|css)} do
post %r{/(delete|rename|edit|create)/(custom|mathjax\.config)\.(js|css)} do
forbid('Changing this resource is not allowed.')
end