import { User } from '../../User/User.entity' ; import { LeaveRequest } from '../LeaveRequest.entity' ; export class CanLeaveRequestBeRemoved { public isSatisfiedBy ( leaveRequest , user ) { return leaveRequest . getUser ( ) . getId ( ) === user . getId ( ) ; } }