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

WFS resource: not taken into account by privileges #8236

Open
jeanpommier opened this issue Jul 2, 2024 · 2 comments
Open

WFS resource: not taken into account by privileges #8236

jeanpommier opened this issue Jul 2, 2024 · 2 comments

Comments

@jeanpommier
Copy link
Contributor

Describe the bug
A WFS resource is displayed even if Add to map and Download privileges are unchecked

To Reproduce
Steps to reproduce the behavior:

  1. Add a WFS resource to a record
  2. Uncheck the privileges Add to map and Download
  3. Unlog yourself and open the record view as anonymous person
  4. See the WFS resource being displayed, with a Download button. The add to map button is grayed but still works (even though adding a WFS layer to the map seems broken)

Expected behavior

  • if add to map privilege is unchecked, the add to map button should not be displayed.
  • if download privilege is unchecked, the download button should not be displayed.
  • if both are unchecked, the WFS layer information should not be displayed at all, as it is for a WMS layer

Screenshots

Public view (not logged in):

image

Privileges:

image

Desktop (please complete the following information):

  • Browser : Firefox, Chromium
  • GeoNetwork Version 4.4.5
  • Docker composition
@jeanpommier
Copy link
Contributor Author

Note: this problem extends to other download and visualization services on GN 4.2.x

@jeanpommier
Copy link
Contributor Author

Open the XML view of the record, the WFS service is also publicly exposed there (makes sense, but not desirable)

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

No branches or pull requests

1 participant