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

🐛 Permission on webgis #663

Closed
1 task done
leolami opened this issue Nov 19, 2023 · 4 comments · Fixed by #666
Closed
1 task done

🐛 Permission on webgis #663

leolami opened this issue Nov 19, 2023 · 4 comments · Fixed by #666
Assignees
Labels
bug Something isn't working
Milestone

Comments

@leolami
Copy link
Member

leolami commented Nov 19, 2023

Checklist

  • I've searched through the existing issues and this bug has never been reported before

Subject of the issue

Layer ACL server filter fail when a user's restricted layer (not view) is call inside a GetLegendGraphic and GetMap WMS REQUEST but the same layer is available (grant to view) fro Anonymous user.

Screenshot_20231120_113402

Steps to reproduce

  • Public a project on G3W-SUITE
  • Give to Anonymous user access also on every layers of the project
  • Add permission to the project to a Viewer Level 1
  • Remove grant view permission on one layer to Viewer Level 1 user
  • Open the webgis service as Viewer Level 1

Environment

  • g3w-admin: 3.7.dev-20231120102359
  • g3w-client: 3.9.0-alpha.2.0
  • browser: Chrome 119.0.0.0
  • operating system: Linux 64-bit

Link to your project

https://dev.g3wsuite.it/it/map/g3w-suite-demo/qdjango/97/

Additional info

No response

@leolami leolami added the bug Something isn't working label Nov 19, 2023
@leolami leolami added this to the v3.7 milestone Nov 19, 2023
@wlorenzetti wlorenzetti changed the title Permission on webgis 🐛 Permission on webgis Nov 20, 2023
@wlorenzetti
Copy link
Member

@leolami I just rewrite the issue because the reason for the bug it's just different.

@leolami
Copy link
Member Author

leolami commented Dec 20, 2023

I think the problem I highlight is different from Tudor's

I published a project for the AnonymosUser user only and I hide a layer (ANTENNE) for the same AnonymosUser

When accessing that project (as Anonymus) I get the error message reported

https://dev.g3wsuite.it/it/map/test-db/qdjango/19/

@wlorenzetti
Copy link
Member

@leolami for me work fine:

as admin01 user:

Screenshot_20231220_114010

as anonymous user:

Screenshot_20231220_113959

@wlorenzetti
Copy link
Member

@leolami I think it was related to this issue: #688 that i just merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants