Re: information schema/aclexplode doesn't know about default privileges
В списке pgsql-hackers по дате отправления:
| От | Lionel Elie Mamane |
|---|---|
| Тема | Re: information schema/aclexplode doesn't know about default privileges |
| Дата | |
| Msg-id | 20120131171100.GA30599@capsaicin.mamane.lu обсуждение |
| Ответ на | Re: information schema/aclexplode doesn't know about default privileges (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
On Mon, Jan 09, 2012 at 08:23:59PM +0200, Peter Eisentraut wrote:
> On mån, 2012-01-02 at 06:43 +0200, Peter Eisentraut wrote:
>> I figured the best and most flexible way to address this is to export
>> acldefault() as an SQL function and replace
>> aclexplode(proacl)
>> with
>> aclexplode(coalesce(proacl, acldefault('f', proowner)))
> Nobody had a better idea, so here is the final patch.
Thanks! This is important for the LibreOffice-PostgreSQL integration,
since LibreOffice uses the privilege information to determine whether
to let the user edit/insert data in the UI or not. It is thus
important for this information to be correct.
I currently work around that with a UNION, assuming that the default
acl is "owner has all rights".
--
Lionel
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера