Skip to content
Snippets Groups Projects
Commit 8f5af049 authored by Sven G. Brönstrup's avatar Sven G. Brönstrup
Browse files

Wrap urls for inline iframes

parent 864235b3
No related branches found
No related tags found
1 merge request!1Extended scripts support
Pipeline #10180 passed
...@@ -229,6 +229,9 @@ checkObjectProperty :: Object -> Property -> LintWriter Layer ...@@ -229,6 +229,9 @@ checkObjectProperty :: Object -> Property -> LintWriter Layer
checkObjectProperty obj p@(Property name _) = case name of checkObjectProperty obj p@(Property name _) = case name of
"url" -> do "url" -> do
pure () pure ()
unwrapURI (Proxy @"website") p
(dependsOn . Link)
(dependsOn . Local)
unless (objectType obj == "website") unless (objectType obj == "website")
$ complain "\"url\" can only be set for objects of type \"website\"" $ complain "\"url\" can only be set for objects of type \"website\""
"allowApi" -> forbidProperty name "allowApi" -> forbidProperty name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment