Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User permissions not synched when DEFAULT_ANONYMOUS_VIEW_PERMISSION is True #416

Closed
giohappy opened this issue Jan 7, 2020 · 1 comment
Assignees

Comments

@giohappy
Copy link

giohappy commented Jan 7, 2020

When DEFAULT_ANONYMOUS_VIEW_PERMISSION is set to True Geofence rules are not synched when a new layer is uploaded. This prevents the user to see its own new layers.

This happens because the synch is never performed inisde the block afer this line.

A small refactoring is required and a call to
sync_geofence_with_guardian(layer, perms, user=None, group=None) should be enough to fix it.

@afabiani
Copy link
Member

afabiani commented Jan 9, 2020

ref. GeoNode#5493

PR submitted GeoNode#5494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants