# app/policies/project_policy.rb
class ProjectPolicy < ApplicationPolicy
  def collaboration_create_entry?
    # Only allow team members to create timeline entries
    current_user.team_member? && show?
  end
end
```
</Option>

<Option name="`collaboration_destroy_entry?`">

Controls whether a user can destroy timeline entries. The `record` parameter can be either an action entry (automatically generated when watched attributes change) or a message entry (manually created by users).

```ruby{3-10}