ElggAnnotation::canEdit PHP Method

canEdit() public method

Determines whether or not the user can edit this annotation
See also: elgg_set_ignore_access()
public canEdit ( integer $user_guid ) : boolean
$user_guid integer The GUID of the user (defaults to currently logged in user)
return boolean
    public function canEdit($user_guid = 0)
    {
        $entity = $this->getEntity();
        return _elgg_services()->userCapabilities->canEditAnnotation($entity, $user_guid, $this);
    }