mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added domain wide terminal shell option.
This commit is contained in:
		
							parent
							
								
									d3fd8e7311
								
							
						
					
					
						commit
						921e610d19
					
				
					 5 changed files with 37 additions and 3 deletions
				
			
		|  | @ -467,6 +467,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use | |||
|                 if (parent.parent.config.settings.managealldevicegroups.indexOf(user._id) >= 0) { serverinfo.manageAllDeviceGroups = true; } | ||||
|                 if (obj.crossDomain === true) { serverinfo.crossDomain = []; for (var i in parent.parent.config.domains) { serverinfo.crossDomain.push(i); } } | ||||
|             } | ||||
|             if (typeof domain.terminal == 'object') { // Settings used for remote terminal feature
 | ||||
|                 if ((typeof domain.terminal.linuxshell == 'string') && (domain.terminal.linuxshell != 'any')) { serverinfo.linuxshell = domain.terminal.linuxshell; } | ||||
|             } | ||||
| 
 | ||||
|             // Send server information
 | ||||
|             try { ws.send(JSON.stringify({ action: 'serverinfo', serverinfo: serverinfo })); } catch (ex) { } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue