public function view(UserPolicy $user, Gallery $gallery)
    {
        if ($user->canDo('gallery.gallery.view') && $user->isAdmin()) {
            return true;
        }

        return $gallery->user_id == user_id() && $gallery->user_type == user_type();
    }