Skip to content

Commit

Permalink
Fix for qmapproxy moduel.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Apr 22, 2024
1 parent b6be288 commit c4e1d05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion g3w-admin/qdjango/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def auth_request(self, **kwargs):
# TODO: create pluggable authentication layers
if (len(set(settings.G3WADMIN_LOCAL_MORE_APPS).intersection(set(['caching', 'qmapproxy']))) > 0
and 'g3wsuite_caching_token' in self.request.GET and \
settings.TILESTACHE_CACHE_TOKEN == self.request.GET['g3wsuite_caching_token']):
(settings.TILESTACHE_CACHE_TOKEN == self.request.GET['g3wsuite_caching_token'] or \
getattr('MAPPROXY_URL_TOKEN') == self.request.GET['g3wsuite_caching_token'])):
return True

if self.request.user.has_perm('qdjango.view_project', self.project) or\
Expand Down

0 comments on commit c4e1d05

Please sign in to comment.