Skip to content

Commit

Permalink
[Bugfix] Access control override filter expression instead of combine
Browse files Browse the repository at this point in the history
In QGIS Server, QgsAccessControl is used to apply access control to data. In the case of filter Expression,
QgsAccessControl will get expression provided by plugins add applies it. But instead of combine plugins
filter expressions with expression provided in the request, QgsAccesControl was override it, and only the
last plugin filter expression is applied.

The fix repalce QgsFeatureRequest::setFilterExpression by QgsFeatureRequest::combineExpression
  • Loading branch information
rldhont authored and nyalldawson committed Dec 14, 2020
1 parent c27b057 commit b3a05db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/qgsaccesscontrol.cpp
Expand Up @@ -75,7 +75,7 @@ void QgsAccessControl::filterFeatures( const QgsVectorLayer *layer, QgsFeatureRe

if ( !expression.isEmpty() )
{
featureRequest.setFilterExpression( expression );
featureRequest.combineFilterExpression( expression );
}
}

Expand Down

0 comments on commit b3a05db

Please sign in to comment.