CanEditActivity
Function: canEditActivity()
[object Object]
Defined in: app/routes/activity/activity.handlers.tsx:59
Determines if the current user has permission to edit a specific activity.
Logic:
- Board Members: Always allowed to edit.
- Organizers: Allowed only if the activity hasn't been finalized for external systems (Website/Koala) and the event hasn't started yet.
Parameters
activity
The activity data to check against.
tokenParsed
The parsed token containing user roles and ID.
boardGroupId
number | null
candidateBoardGroupId
number | null
Returns
[object Object]
True if the user is authorized to edit.