def is_task_stub_mutable(context, task_stub):
    """Return True if the task stub is mutable in this context."""
    if context.is_admin:
        return True
    if context.owner is None:
        return False
    return task_stub.owner == context.owner
