- Owner check: can write to owner as container (can_write_write_to_container())
- Container check: can write to the container as a container (can_write_write_to_container())
- ElggEntity::canEdit()
- ElggEntity::canEdit()
No access checks (access to entity not required if using create_metadata())
No access checks if using the __set magic method, but ElggMetadata::canEdit() if using update_metadata()
- ElggMetadata::canEdit()
no access checks (access to entity not required if using create_annotation())
- ElggAnnotation::canEdit()
- ElggAnnotation::canEdit()
no access checks
- Updating an entity can change the owner or container in ways that would fail the check during creation.
- The access checks for updating metadata on an entity when using the magic method are explicitly turned off
- can_write_to_container() is a check if the user can edit the container entity.
- A user can edit an entity if any of the following conditions are true
- user owns the entity
- user is the container for the entity
- user is the entity
- user can edit the container (creates potential for infinite loop)