mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
More agent invite code feature fixes.
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user