Authentication result parsing
This commit is contained in:
@@ -217,7 +217,7 @@ export function TplFS(client, parent, desc) {
|
||||
}
|
||||
|
||||
TplFS.fromUser = async function(client, user_ien=null) {
|
||||
if(!user_ien) user_ien = (await client.userinfo()).result[0];
|
||||
if(!user_ien) user_ien = (await client.authinfo()).duz;
|
||||
return new TplFS(client, null, (await client.TIU_TEMPLATE_GETPROOT(user_ien))[0]);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user