public boolean isVisible(User user) {
        if(visibility == VISIBILITY_PUBLIC) {
            return true;
        }

        if(visibility == VISIBILITY_FRIENDS) {
            if(owner.friendsWith(user)) {
                return true;
            }
        }

        if(visibility == VISIBILITY_PRIVATE) {
            if(owner.equals(user)) {
                return true;
            }
        }

        return false;
    }