<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 22, 2021 at 12:47 PM Marco Casalboni <<a href="mailto:casalbonim@gmail.com">casalbonim@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">I'm sorry to bother you more.<div>With the examples provided I can easily set up my role permissions, but it works on layers only: the accessControlFilter.layerPermissions doesn't seem to take care of layer groups in the GetCapabilities request.</div><div>If the layer group has 0 layers because none of the sublayers is readable by the authenticated user, it still remains in the GetCapabilities response.</div><div><br></div><div>Is it possible to exclude a group with 0 layers in the GetCapabilities response?</div></div></div></blockquote><div><br></div><div>This sounds like a bug to me... I cannot see any valid reason to keep an empty group in the capabilities response.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Or better:</div><div>Is it possible to apply the AccessControl plugin to a layer group?</div></div></div></blockquote><div><br></div><div>I don't think so, because a group is not a layer and the plugin filter current implementation works on layers.</div><div><br></div><div>Regards.<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div></div>