mapcentia / geocloud2

The GC2 framework helps you build a spatial data infrastructure quickly and easily. Powered using open source components for a scalable solution focused on freedom rather than fees.
https://www.osgeo.org/projects/gc2-vidi/
GNU Affero General Public License v3.0
148 stars 67 forks source link

Sub user seeing layers it shouldn't #61

Closed TimJMartin closed 5 years ago

TimJMartin commented 5 years ago

I am trying out GC2 using the online hosted version and created a new account (peterrabbit) and uploaded two files (national parks and airports). I then created two sub users (without their own schemas).

In the admin account I then clicked on privliges and set that one user could see both and one user could only see one layer.

I then logged into GC2 in Incognito mode and the second user could see both layers in Vidi. I could also see both layers in the WFS in QGIS.

The strange thing is that when I go to the database view using the second user credentials I only see one of the layers - which is correct.

below are some images that show what is happening?

Maybe I am not setting something correctly as it partly works. Could you please help?

AdminDashboard Privileges SeeAirports

InWFS NoAirports

TimJMartin commented 5 years ago

Just to add I am trying to enable some users to see all layers and then some users can only see some layers. And no user should have write or be able to edit

mapcentia commented 5 years ago

Sorry for the late reply. You have to set the Database tab->Authentication to Read/write on the layers, which should only be visible for the sub-users. image

In WFS GetCapabilities you'll always see all layers, but you need to authenticate users when reading the layer.