Esempio n. 1
0
def pi_allow_signature_actions(context):
    """allow/disallow other signature actions => such as withdraw and reject
    """
    validator = ISignatoriesValidator(context.item, None)
    return (validator and user_is_context_owner(context)
            and validator.documentSubmitted()
            and user_is_not_parent_document_owner(context))
Esempio n. 2
0
def pi_allow_signature_actions(context):
    """allow/disallow other signature actions => such as withdraw and reject
    """
    validator = ISignatoriesValidator(context.item, None)
    return (validator and user_is_context_owner(context) 
        and validator.documentSubmitted()
        and user_is_not_parent_document_owner(context)
    )