mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 12:16:29 +08:00 
			
		
		
		
	moved ee check out of ce
This commit is contained in:
		 0xdcarns
					0xdcarns
				
			
				
					committed by
					
						 Matthew R. Kasun
						Matthew R. Kasun
					
				
			
			
				
	
			
			
			 Matthew R. Kasun
						Matthew R. Kasun
					
				
			
						parent
						
							ea4beb34f4
						
					
				
				
					commit
					b7ae6c6d35
				
			| @@ -162,7 +162,7 @@ func UserPermissions(reqAdmin bool, netname string, token string) ([]string, str | ||||
| 	if len(netname) > 0 && (!authenticateNetworkUser(netname, userNetworks) || len(userNetworks) == 0) { | ||||
| 		return nil, username, Unauthorized_Err | ||||
| 	} | ||||
| 	if !pro.IsUserNetAdmin(netname, username) { | ||||
| 	if isEE && !pro.IsUserNetAdmin(netname, username) { | ||||
| 		return nil, "", Unauthorized_Err | ||||
| 	} | ||||
| 	return userNetworks, username, nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user