-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Check User permissions for private group #5801
Comments
@afabiani one more minor issue found in permissions form: would change
or maybe better in the inital db query to avoid to many database hits? |
Sidenote: Groups will be displayed on LayerDetailViews and the LayerListView, too. From there Links are displayed which would lead to a dead end, if the above is implemented. |
@gannebamm not sure about it. The private group is not showing up ad layer detail. |
Same here @sjohn-atenekom : |
I could reproduce the problem. a user can assign the permissions for a private group in which he is not a member.
|
This behavior is enabled only when you set the This is part of a set of 4 settings which allow you to enable (partially or fully) and advanced data validation workflow |
I can not reproduce this old behaviour I seem to have spotted.
I can reproduce this issue of seeing a private group in the permissions, too. I think this is an issue since the documentation states (https://docs.geonode.org/en/master/admin/admin_panel/index.html#types-of-groups): @afabiani I think So you should not be able to see private groups if you are not a member of them. I would vote for @t-book idea to check in the template, or on the sql query side for group visibility permissions. |
@gannebamm Confirmed. Private groups do show up for non group members (GROUP_PRIVATE_RESOURCES=True). My understanding is a private group should be private. In other words non members should not even know of the group existence. If you and @afabiani agree I would follow up with my patch here and create a PR: #5801 (comment) |
Yes, that is my understanding of private groups, too. They shouldn't be visible by anyone except members. |
Yes, this is correct. They should show-up only if the user is currently a member or manager of the group. |
Describe the solution you'd like
GroupDetailView should check if group is private and if user is member.
The text was updated successfully, but these errors were encountered: