Skip to content
Permalink
Browse files

fix c40a764

  • Loading branch information
jef-n committed Nov 19, 2015
1 parent 5b59609 commit 84e4539b9e80f8e89ba67a416537c7c18afb80af
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/qgsaccesscontrol.cpp
@@ -31,7 +31,7 @@ void QgsAccessControl::filterFeatures( const QgsVectorLayer* layer, QgsFeatureRe
for ( acIterator = mPluginsAccessControls->constBegin(); acIterator != mPluginsAccessControls->constEnd(); ++acIterator )
{
const QString expression = acIterator.value()->layerFilterExpression( layer );
if ( expression )
if ( !expression.isEmpty() )
{
expressions.append( expression );
}
@@ -56,7 +56,7 @@ const QString QgsAccessControl::extraSubsetString( const QgsVectorLayer* layer )
for ( acIterator = mPluginsAccessControls->constBegin(); acIterator != mPluginsAccessControls->constEnd(); ++acIterator )
{
const QString sql = acIterator.value()->layerFilterSubsetString( layer );
if ( sql )
if ( !sql.isEmpty() )
{
sqls.append( sql );
}

0 comments on commit 84e4539

Please sign in to comment.
You can’t perform that action at this time.