Ensure that the superuser should be able to create database and role, as the superuser
overrides all the access restrictions. Fixes #4792 Fixes #4878pull/27/head
parent
b7d7bda93a
commit
f22134dabd
|
|
@ -17,4 +17,6 @@ Housekeeping
|
|||
Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #4792 <https://redmine.postgresql.org/issues/4792>`_ - Ensure that the superuser should be able to create database, as the superuser overrides all the access restrictions.
|
||||
| `Issue #4878 <https://redmine.postgresql.org/issues/4878>`_ - Ensure that the superuser should be able to create role, as the superuser overrides all the access restrictions.
|
||||
| `Issue #4934 <https://redmine.postgresql.org/issues/4934>`_ - Fix the help button link on the User Management dialog.
|
||||
|
|
|
|||
|
|
@ -492,7 +492,8 @@ WHERE db.datname = current_database()""")
|
|||
status = _execute(cur, """
|
||||
SELECT
|
||||
oid as id, rolname as name, rolsuper as is_superuser,
|
||||
rolcreaterole as can_create_role, rolcreatedb as can_create_db
|
||||
CASE WHEN rolsuper THEN true ELSE rolcreaterole END as can_create_role,
|
||||
CASE WHEN rolsuper THEN true ELSE rolcreatedb END as can_create_db
|
||||
FROM
|
||||
pg_catalog.pg_roles
|
||||
WHERE
|
||||
|
|
|
|||
Loading…
Reference in New Issue