def can_change_power_permission(user):
    """
    Check permission: whether this user can modify power state.
    :param user: django.contrib.auth.models.User
    :return: Bool
    """
    return user.groups.filter(name="change_power_operation").exists() or user.is_staff or user.is_superuser