1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 13:23:41 +00:00

Updated, so default uid is set to consoleUid()

This commit is contained in:
Bryan Roe
2021-12-10 19:15:47 -08:00
parent 55301ab197
commit 8c9fb63d33
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -349,7 +349,7 @@ function createLocal(title, caption, username, options)
function create(title, caption, username, options)
{
if (options == null) { options = {}; }
if (options.uid == null) { return (createLocal(title, caption, username, options)); }
if (options.uid == null) { options.uid = require('user-sessions').consoleUid(); }
var self = require('user-sessions').getProcessOwnerName(process.pid).tsid;
if (self != 0)
{