Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix c40a764
  • Loading branch information
jef-n committed Nov 19, 2015
1 parent 5b59609 commit 84e4539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/qgsaccesscontrol.cpp
Expand Up @@ -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 );
}
Expand All @@ -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 );
}
Expand Down

0 comments on commit 84e4539

Please sign in to comment.