mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed session recording permission issue, #2896
This commit is contained in:
		
							parent
							
								
									3a9aced563
								
							
						
					
					
						commit
						9b7ccb27fe
					
				
					 2 changed files with 2943 additions and 2904 deletions
				
			
		|  | @ -1288,7 +1288,11 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use | |||
|                             if ((command.flags == 0) && (chguser.flags != null)) { delete chguser.flags; change = 1; } else { if (command.flags !== chguser.flags) { chguser.flags = command.flags; change = 1; } } | ||||
|                         } | ||||
|                         if ((command.removeRights != null) && (typeof command.removeRights == 'number')) { | ||||
|                             if ((command.removeRights == 0) && (chguser.removeRights != null)) { delete chguser.removeRights; change = 1; } else { if (command.removeRights !== chguser.removeRights) { chguser.removeRights = command.removeRights; change = 1; } }  | ||||
|                             if (command.removeRights == 0) { | ||||
|                                 if (chguser.removeRights != null) { delete chguser.removeRights; change = 1; } | ||||
|                             } else { | ||||
|                                 if (command.removeRights !== chguser.removeRights) { chguser.removeRights = command.removeRights; change = 1; } | ||||
|                             }  | ||||
|                         } | ||||
| 
 | ||||
|                         // Site admins can change any server rights, user managers can only change AccountLock, NoMeshCmd and NoNewGroups
 | ||||
|  |  | |||
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue