File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ namespace QgsWms
103
103
}
104
104
105
105
// access control
106
+ #ifdef HAVE_SERVER_PYTHON_PLUGINS
106
107
QgsAccessControl *accessControl = serverIface->accessControls ();
108
+ #endif
107
109
// Use layer ids
108
110
bool useLayerIds = QgsServerProjectUtils::wmsUseLayerIds ( *project );
109
111
// WMS restricted layers
@@ -132,10 +134,12 @@ namespace QgsWms
132
134
throw QgsSecurityException ( QStringLiteral ( " You are not allowed to access to this layer" ) );
133
135
}
134
136
137
+ #ifdef HAVE_SERVER_PYTHON_PLUGINS
135
138
if ( accessControl && !accessControl->layerReadPermission ( layer ) )
136
139
{
137
140
throw QgsSecurityException ( QStringLiteral ( " You are not allowed to access to this layer" ) );
138
141
}
142
+ #endif
139
143
140
144
// Create the NamedLayer element
141
145
QDomElement layerNode = myDocument.createElement ( QStringLiteral ( " LayerDescription" ) );
You can’t perform that action at this time.
0 commit comments