Skip to content

Commit

Permalink
[Fixes #1213] Avoid executing permissions request for anonymous users (
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Oct 20, 2022
1 parent b6dbafe commit 5e44e5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode_mapstore_client/client/js/epics/gnresource.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { configureMap } from '@mapstore/framework/actions/config';
import { mapSelector } from '@mapstore/framework/selectors/map';
import { getSelectedLayer } from '@mapstore/framework/selectors/layers';
import { isLoggedIn } from '@mapstore/framework/selectors/security';
import {
browseData,
selectNode
Expand Down Expand Up @@ -384,7 +385,7 @@ export const gnViewerRequestResourceConfig = (action$, store) =>
loadingResourceConfig(true),
setResourceType(action.resourceType)
),
...(!isSamePreviousResource
...((!isSamePreviousResource && !!isLoggedIn(state))
? [
Observable.defer(() => getCompactPermissionsByPk(action.pk))
.switchMap((compactPermissions) => {
Expand Down

0 comments on commit 5e44e5c

Please sign in to comment.