diff --git a/g3w-admin/qdjango/api/projects/serializers.py b/g3w-admin/qdjango/api/projects/serializers.py index 089d0272c..f1f4588ec 100644 --- a/g3w-admin/qdjango/api/projects/serializers.py +++ b/g3w-admin/qdjango/api/projects/serializers.py @@ -275,7 +275,7 @@ def set_map_themes(self, ret, qgs_project): # Check for custom themes # ----------------------- - if not self.request.user.is_anonymous: + if self.request and not self.request.user.is_anonymous: c_themes = CustomerTheme.objects.filter(project_id=ret['id'], user=self.request.user) for c_theme in c_themes: ret['map_themes']['custom'].append({ diff --git a/g3w-admin/qdjango/utils/data.py b/g3w-admin/qdjango/utils/data.py index a3a8e73b3..fb5fcc30c 100644 --- a/g3w-admin/qdjango/utils/data.py +++ b/g3w-admin/qdjango/utils/data.py @@ -332,7 +332,7 @@ def _getDataLayerType(self): if self.qgs_layer.type() == QgsMapLayerType.VectorTileLayer: layer_type = 'vector-tile' - if layer_type == 'arcgisvectortilelayer': + if layer_type == 'arcgisvectortileservice': layer_type = 'vector-tile' if not layer_type in availableTypes: