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: (view raw, whole thread or download thread mbox)
Lists: pgadmin-support

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.


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

<         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-2017 The PostgreSQL Global Development Group