```ruby
class ItemAssignment < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    timestamps
  end

  belongs_to :user 
  belongs_to :item 
 
  # --- Permissions --- #

  def create_permitted?
    acting_user.administrator?
  end

  def update_permitted?
    acting_user.administrator?
  end

  def destroy_permitted?
    acting_user.administrator?
  end

  def view_permitted?(field)
    true
  end

end
```

Use project_id based permissions in the Hobo permissions methods for the ItemAssignment model
user
```ruby
class ItemAssignment < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    timestamps
  end

  belongs_to :user
  belongs_to :item

  # --- Permissions --- #

  def create_permitted?
    ProjectMember.memberships.include?(item.project_id)
  end

  def update_permitted?
    ProjectMember.memberships.include?(item.project_id)
  end

  def destroy_permitted?
    ProjectMember.memberships.include?(item.project_id)
  end

  def view_permitted?(field)
    true
  end

end
```
assistant