Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI

Поиск
Список
Период
Сортировка
От Thomas Sondag
Тема Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI
Дата
Msg-id 2354aa530605220710u73475259tce39f93f5c32a1a4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgadmin-support
Hi,

Same kind of problem with the role property editor, you are not
allowed to modify ROLE properties.

I've got a very few understanding of pgadmin code (and no C++ skill at
all ) but this patch do the job.
 Thomas

diff pgadmin3/src/dlg/dlgRole.cpp pgadmin3_1.4.svn20060522/src/dlg/dlgRole.cpp

127,128c127,133
<         readOnly=!role->GetServer()->GetSuperUser();
<
---
>
>       if (role->GetServer()->GetSuperUser() || role->GetServer()->GetCreateRole()) {
>               readOnly=false;
>       } else {
>               readOnly=true;
>       }
>

В списке pgadmin-support по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: pgagent.sql script
Следующее
От: YourSoft
Дата:
Сообщение: Bug in 'query tool'