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

From: "Thomas Sondag" <thomas(dot)sondag(at)gmail(dot)com>
To: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>, Pgadmin-Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI
Date: 2006-05-22 14:10:18
Message-ID: 2354aa530605220710u73475259tce39f93f5c32a1a4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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;
> }
>

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message YourSoft 2006-05-22 14:15:08 Bug in 'query tool'
Previous Message Andreas Pflug 2006-05-19 21:38:49 Re: pgagent.sql script