Skip to content

Commit

Permalink
Make ACLResourceAccessManager.getSecurityFilter() return a proper in-…
Browse files Browse the repository at this point in the history
…process filter

For the sake of correctness, make ACLResoruceAccessManager.getSecurityFilter()
resort to the in-process filter until we can provide a faster alternative
  • Loading branch information
groldan committed Jun 1, 2024
1 parent beb43bc commit 782072c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11920,7 +11920,7 @@ <h1>deleteAllAdminRules</h1>
<p class="marked">Atomically deletes all admin rules and return the number of rules removed</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/adminrules/query/count</span></code></pre>
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/adminrules</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
Expand All @@ -11945,7 +11945,7 @@ <h3>Usage and SDK Samples</h3>
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE \
-H "Authorization: Basic [[basicHash]]" \
-H "Accept: application/json" \
"/api/adminrules/query/count"
"/api/adminrules"
</code></pre>
</div>
<div class="tab-pane" id="examples-WorkspaceAdminRules-deleteAllAdminRules-0-java">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.geoserver.catalog.LayerGroupInfo;
import org.geoserver.catalog.LayerGroupInfo.Mode;
import org.geoserver.catalog.LayerInfo;
import org.geoserver.catalog.Predicates;
import org.geoserver.catalog.ResourceInfo;
import org.geoserver.catalog.StyleInfo;
import org.geoserver.catalog.WMSLayerInfo;
Expand Down Expand Up @@ -690,7 +689,8 @@ private List<PropertyName> toPropertyNames(

@Override
public Filter getSecurityFilter(Authentication user, Class<? extends CatalogInfo> clazz) {
return Predicates.acceptAll();
// resort to the in-process filter until we can provide a faster alternative
return super.getSecurityFilter(user, clazz);
}

@Override
Expand Down

0 comments on commit 782072c

Please sign in to comment.