Skip to content

Commit aba5466

Browse files
authored
Merge pull request #71 from line-o/fix/curl-upload
[bugfix] allow basic auth on restricted routes
2 parents cf68bc5 + bd01a16 commit aba5466

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

controller.xql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ declare variable $app-root-absolute-url :=
1919
;
2020

2121
declare function local:is-authorized-user() as xs:boolean {
22-
let $user := request:get-attribute($config:login-domain || ".user")
22+
let $user := (
23+
request:get-attribute($config:login-domain || ".user"),
24+
sm:id()//sm:username/string()
25+
)[1]
26+
2327
return
2428
(
2529
exists($user) and

0 commit comments

Comments
 (0)