(user, comment)
return user.is_authenticated() and (
        user.id == comment.user_id or
        user.reputation >= DELETE_COMMENTS or
        user.is_superuser)
Determines if a User can delete the given Comment.
Determines if a User can delete the given Comment.
Determines if a User can delete the given Comment .
def can_delete_comment(user, comment):
    """Determines if a User can delete the given Comment."""
    return user.is_authenticated() and (
        user.id == comment.user_id or
        user.reputation >= DELETE_COMMENTS or
        user.is_superuser)
def can_delete_comment ( user , comment ) : return user . is_authenticated ( ) and ( user . id == comment . user_id or user . reputation >= DELETE_COMMENTS or user . is_superuser )