CanEditActivity
Function: canEditActivity()
[object Object]
Defined in: util/group.util.ts:95
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 and is part of the organizing group
Parameters
activity
The activity data to check against.
tokenParsed
The parsed token containing user roles and ID.
Returns
[object Object]
True if the user is authorized to edit.