Closed TimJMartin closed 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
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.
In WFS GetCapabilities you'll always see all layers, but you need to authenticate users when reading the layer.
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?