Commit a66c3d75 authored by Wolfgang's avatar Wolfgang

login request should return user groups as array

parent 25f9d7ea
......@@ -48,11 +48,11 @@ else if ($exist:resource eq 'login') then (
return (
util:declare-option("exist:serialize", "method=json"),
try {
<status>
<status xmlns:json="http://www.json.org">
<user>{$user}</user>
{
if ($user) then (
<group>{sm:get-user-groups($user)}</group>,
<groups json:array="true">{sm:get-user-groups($user)}</groups>,
<dba>{sm:is-dba($user)}</dba>
) else
()
......
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