Opened 14 years ago
Closed 14 years ago
#2468 closed enhancement (fixed)
Support for Column Permissions in PostgreSQL 8.4
Reported by: | pinux | Owned by: | nobody |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.5.0 |
Component: | Data Provider | Version: | Trunk |
Keywords: | postgis postgres column permission | Cc: | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Column Permission in PostgreSQL 8.4 is not supported in Qgis. When I grant insert or update on a specific column, like this: GRANT INSERT(mycolumn) ON mytable TO user; GRANT UPDATE(mycolumn) ON mytable TO user;
It is not possible to edit the column mycolumn in qgis.
Change History (2)
comment:1 by , 14 years ago
Component: | Build/Install → Data Provider |
---|---|
Platform: | Windows → All |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
fixed in r13014.
the postgres provider now checks if the user has update privilege on the geometry column when checking if geometry changes should be enabled and update privileges on any/at least one attribute column to enable attribute changes. Enabling addition of new features still requires table insert privilege (ie. insert privilege on all columns).
Note: that way edits of readonly attribute columns are not forbidden, but will cause the commit to fail. To prevent that either don't change those attributes in the first place or set the read-only attributes 'Immutable' or 'Hidden' in the attribute tab of vector layer properties, so that the are not changeable in the UI - although plugins could still change readonly attributes.