mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-02 14:29:03 +02:00
11 lines
341 B
TypeScript
11 lines
341 B
TypeScript
//
|
|
// Copyright @ 2024 Hardcore Engineering Inc.
|
|
//
|
|
|
|
import type { TrainingRequest } from '@hcengineering/training'
|
|
import { getCurrentEmployeeRef } from './getCurrentEmployeeRef'
|
|
|
|
export function canCancelTrainingRequest (object: TrainingRequest): boolean {
|
|
return object.canceledOn === null && object.owner === getCurrentEmployeeRef()
|
|
}
|