def METHOD_NAME(cls, record, action, user=None):
    """Create a record permission."""
    if action in cls.read_actions:
        return cls(record, has_read_permission, user)
    elif action in cls.update_actions:
        return cls(record, has_update_permission, user)
    else:
        return cls(record, deny, user)