c2cgeoportal-geoportal 2.9.0.249__py3-none-any.whl → 2.9.0.253__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -831,6 +831,11 @@ class Theme:
831
831
  theme_theme = {
832
832
  "id": theme.id,
833
833
  "name": theme.name,
834
+ "public": (
835
+ theme.public
836
+ or self.request.get_organization_role("anonymous")
837
+ in [role.name for role in theme.restricted_roles]
838
+ ),
834
839
  "icon": icon,
835
840
  "children": children,
836
841
  "functionalities": self._get_functionalities(theme),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cgeoportal-geoportal
3
- Version: 2.9.0.249
3
+ Version: 2.9.0.253
4
4
  Summary: c2cgeoportal geoportal
5
5
  Home-page: https://github.com/camptocamp/c2cgeoportal/
6
6
  Author: Camptocamp
@@ -171,7 +171,7 @@ c2cgeoportal_geoportal/views/proxy.py,sha256=XxOGR8Snqrd1CKkUiK4IjavCR8PiUsd3tlE
171
171
  c2cgeoportal_geoportal/views/raster.py,sha256=kY6rYo4SxQP9JLbsq3_kdWdbaTVkdQDdpjrG9lUtAIM,9242
172
172
  c2cgeoportal_geoportal/views/resourceproxy.py,sha256=pcHwU6hAXHeh_Ef6tuHxpRzGje8nqVKUxyZwZKOPCjI,3189
173
173
  c2cgeoportal_geoportal/views/shortener.py,sha256=7_yQYPhtm-ddCLILnh2c0_WCgUq1D3bLhgyscGuTGUg,6530
174
- c2cgeoportal_geoportal/views/theme.py,sha256=GKIIkpPecz0adZyJG4XEJ6J6XB-q2R7AP7SCYKxY51o,56123
174
+ c2cgeoportal_geoportal/views/theme.py,sha256=wTCEMn08aBN6GiTGxiTiEG-TNgjrRMpTys-5nYSQOps,56364
175
175
  c2cgeoportal_geoportal/views/tinyowsproxy.py,sha256=_wPN1Vfo4RNcCQ1xRPU_funie7mDPocL-ox_4hlF1-Y,8178
176
176
  c2cgeoportal_geoportal/views/vector_tiles.py,sha256=2bF3j6WvOpXAJULsEfy7pfeUBeKVheMlcUOWzHVow90,3575
177
177
  tests/__init__.py,sha256=QJY_VGdOehpa3uMdeiF0boDPvH8BVgxPWJRzyDTcvwA,3826
@@ -187,8 +187,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
187
187
  tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
188
188
  tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
189
189
  tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
190
- c2cgeoportal_geoportal-2.9.0.249.dist-info/METADATA,sha256=nKSitJY327SbyKKkl9aeWqaerwM6JFjbajAF6KD_aBQ,1980
191
- c2cgeoportal_geoportal-2.9.0.249.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
192
- c2cgeoportal_geoportal-2.9.0.249.dist-info/entry_points.txt,sha256=3dnX260FsLX_AubeNMdyeta_z1X4CxcD3steAlfPx2I,1414
193
- c2cgeoportal_geoportal-2.9.0.249.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
194
- c2cgeoportal_geoportal-2.9.0.249.dist-info/RECORD,,
190
+ c2cgeoportal_geoportal-2.9.0.253.dist-info/METADATA,sha256=J83WUH37GaaLFbI1R0T8L6k-Hi_azgF2ZOMzgz0_tSc,1980
191
+ c2cgeoportal_geoportal-2.9.0.253.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
192
+ c2cgeoportal_geoportal-2.9.0.253.dist-info/entry_points.txt,sha256=3dnX260FsLX_AubeNMdyeta_z1X4CxcD3steAlfPx2I,1414
193
+ c2cgeoportal_geoportal-2.9.0.253.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
194
+ c2cgeoportal_geoportal-2.9.0.253.dist-info/RECORD,,