mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More agent invite code feature fixes.
This commit is contained in:
parent
cc5e489108
commit
3a61a77b8a
5 changed files with 526 additions and 475 deletions
|
@ -8147,10 +8147,9 @@
|
|||
x += addHtmlValue("Notifications", addLink(meshNotifyStr.join(', '), 'p20editMeshNotify()'));
|
||||
|
||||
// Display invitation codes
|
||||
if (features & 0x01000000) {
|
||||
if ((features & 0x01000000) && (currentMesh.mtype == 2)) {
|
||||
var inviteCodeStr = '<i>' + "None" + '</i>', icodes = false;
|
||||
if (currentMesh.invite != null) { icodes = true; inviteCodeStr = currentMesh.invite.codes.join(', '); /* + ', ' + currentMesh.invite.flags;*/ }
|
||||
//x += addHtmlValue("Invite Codes", addLink(inviteCodeStr, 'p20editmeshInviteCode()'));
|
||||
x += addHtmlValue("Invite Codes", addLinkConditional(inviteCodeStr, 'p20editmeshInviteCode()', (meshrights & 1) || (icodes)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue