mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
Updated, so default uid is set to consoleUid()
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -349,7 +349,7 @@ function createLocal(title, caption, username, options)
|
|||||||
function create(title, caption, username, options)
|
function create(title, caption, username, options)
|
||||||
{
|
{
|
||||||
if (options == null) { 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;
|
var self = require('user-sessions').getProcessOwnerName(process.pid).tsid;
|
||||||
if (self != 0)
|
if (self != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user