Skip to content

Commit

Permalink
Server accesscontrol getfeatureifo rules clear
Browse files Browse the repository at this point in the history
This fixes and unreported bug where access control rules
were not reset in case of getfeatureinfo calls.

Funded by Gis3W https://www.gis3w.it
  • Loading branch information
elpaso committed Mar 3, 2021
1 parent 5df09f5 commit 41c84a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -1036,6 +1036,10 @@ namespace QgsWms
// add layers to map settings
mapSettings.setLayers( layers );

#ifdef HAVE_SERVER_PYTHON_PLUGINS
mContext.accessControl()->resolveFilterFeatures( mapSettings.layers() );
#endif

QDomDocument result = featureInfoDocument( layers, mapSettings, outputImage.get(), version );

QByteArray ba;
Expand Down

0 comments on commit 41c84a8

Please sign in to comment.