app/views.py
def is_owner_of_doc(doc):
    """
    Function for checking document ownership.
    SINCE WE ARE KEEPING ACCESS CONTROL SIMPLE, WE ARE DEFAULTING THIS TO TRUE
    :param str doc: A specific document ID
    :return bool: whether the document's owner matches the current owner
    """
    # owner = es.get(index=es_index, doc_type='attachment', id=doc, fields='owner')['fields']['owner'][0]
    # return is_owner(owner)
    return True

    Function for checking document ownership.
    SINCE WE ARE KEEPING ACCESS CONTROL SIMPLE, WE ARE DEFAULTING THIS TO TRUE
    :param str doc: A specific document ID
    :return bool: whether the document's owner matches the current owner
    
Function for checking document ownership.
Function for checking document ownership .
def is_owner_of_doc(doc):
    return True
def is_owner_of_doc ( doc ) : return True
Function for checking document ownership.
Function for checking document ownership .
"""
    Function for checking document ownership.
    SINCE WE ARE KEEPING ACCESS CONTROL SIMPLE, WE ARE DEFAULTING THIS TO TRUE
    :param str doc: A specific document ID
    :return bool: whether the document's owner matches the current owner
    """ # owner = es.get(index=es_index, doc_type='attachment', id=doc, fields='owner')['fields']['owner'][0] # return is_owner(owner)
whether the document's owner matches the current owner
whether the document ' s owner matches the current owner
bool
doc
A specific document ID
A specific document ID