Commit 3485afce authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

feat: wiki update write permission

parent a562e742
......@@ -3,9 +3,12 @@ xquery version "3.1";
declare variable $target external;
(: register REST APIs :)
for $uri at $pos in (collection($target)/base-uri())[ends-with(., ".xqm")]
(for $uri at $pos in (collection($target)/base-uri())[ends-with(., ".xqm")]
let $content := $uri => util:binary-doc() => util:base64-decode()
let $isRest := if(contains($content, "%rest:")) then true() else false()
where $isRest
sm:chmod($target || "/modules/wiki/wiki.xqm", "rwsrwxr-x")
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment