mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-04 04:39:10 +00:00 
			
		
		
		
	
		
			
	
	
		
			8 lines
		
	
	
		
			365 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			8 lines
		
	
	
		
			365 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								import { DataModelEntity } from '@datahub/data-models/constants/entity/index';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Given a data model entity, returns whether that entity is valid for ownership
							 | 
						||
| 
								 | 
							
								 * @param {DataModelEntity} entity - data model entity class we want to test
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								export const isOwnableEntity = (entity: DataModelEntity): boolean => Boolean(entity.renderProps?.userEntityOwnership);
							 |