Web pgadmin.org
 Home 
 ·  ·  ·  ·  ·  ·  · 
Re: role with "CREATEDB" and "CREATEROLE" without effect on GUI

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



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;
      }



Home | Main Index | Thread Index

top