Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL: only show databases you can access #475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomas-daniels
Copy link

When connecting to a PostgreSQL database, Adminer's dropdown also includes all databases you don't have access to, which is not very useful. This commit filters out databases that you don't have the USAGE privilege on, to present a cleaner overview of available databases.

When connecting to a PostgreSQL database, Adminer's dropdown also includes all databases you don't have access to, which is not very useful. This commit filters out databases that you don't have the USAGE privilege on, to present a cleaner overview of available databases.
@Baltix
Copy link

Baltix commented Aug 24, 2023

Original project is no longer maintained, please send your commits to AdminerEvo - https://github.com/adminerevo/adminerevo

@peterpp
Copy link
Contributor

peterpp commented Sep 7, 2024

Merged to pematon@0d09365 with few changes. I've kept has_database_privilege in condition and added datallowconn (to hide template0 database).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants