@classmethod
def get_row_permission(cls, obj, ar, state, ba):
    """Returns True or False whether the given action request
        ActionRequest `ar` is allowed on the given row instance `row`.

        """
    if ba.action.readonly:
        return True
    if ar.get_user().user_type.readonly:
        return False
    return cls.editable
