Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
3485afce
Commit
3485afce
authored
Feb 22, 2021
by
Mathias Goebel
🎠
Browse files
feat: wiki update write permission
parent
a562e742
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
post-install.xq
View file @
3485afce
...
...
@@ -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
return
exrest:register-module
(
xs:anyURI
(
$uri
))
)
,
sm:chmod
(
$target
||
"/modules/wiki/wiki.xqm"
,
"rwsrwxr-x"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment