canEditEvent

Function

Checks if user has access to edit an event in Hub

  • canEditEvent(model: IEventModel, user: IUser) : boolean

Parameters

Parameter Type Default Notes
model Required IEventModel

consolidated event model as consumed by Hub, contains the event feature, related initiative model, and attendees group

user Required IUser

Returns

boolean

Function defined in packages/common/src/access/can-edit-event.ts:18