Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI - Mailing list pgadmin-support

From Thomas Sondag
Subject Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI
Date
Msg-id 2354aa530605220710u73475259tce39f93f5c32a1a4@mail.gmail.com
Whole thread Raw
In response to Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI  ("Dave Page" <dpage@vale-housing.co.uk>)
List 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 by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: pgagent.sql script
Next
From: YourSoft
Date:
Subject: Bug in 'query tool'