Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set parameters to context
  • Loading branch information
pblottiere committed Mar 6, 2021
1 parent 61dc440 commit 1531de5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/services/wms/qgswmsgetstyles.cpp
Expand Up @@ -61,8 +61,10 @@ namespace QgsWms
{
// init WMS parameters and context
const QgsWmsParameters parameters( QUrlQuery( request.url() ) );

QgsWmsRenderContext context( project, serverIface );
context.setFlag( QgsWmsRenderContext::SetAccessControl );
context.setParameters( parameters );

// init document
QDomDocument myDocument = QDomDocument();
Expand Down

0 comments on commit 1531de5

Please sign in to comment.