Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgadmin-support by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group