mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-31 12:19:47 +02:00
11 lines
313 B
TypeScript
11 lines
313 B
TypeScript
//
|
|
// Copyright @ 2024 Hardcore Engineering Inc.
|
|
//
|
|
|
|
import type { TrainingRequest } from '@hcengineering/training'
|
|
import { getCurrentEmployeeRef } from './getCurrentEmployeeRef'
|
|
|
|
export function canUpdateTrainingRequest (request: TrainingRequest): boolean {
|
|
return request.owner === getCurrentEmployeeRef()
|
|
}
|