teableio / teable

✨ The Next Gen Airtable Alternative: No-Code Postgres

Home Page:https://teable.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"You don't have permission to access the database" when trying to get DB connection info

christophberger opened this issue · comments

Describe the bug
When I try to obtain database information via API > Postgres Connection, I get the error message "You don't have permission to access the database".

To Reproduce

  1. Go to a table
  2. Click on < / > API
  3. Select "Postgresql Connection"
  4. See error

Expected behavior
DB connection info should appear

Screenshots
Screenshot 2024-05-07 at 23 44 20

** Client (please complete the following information):**

  • OS: macOS Sonoma
  • Browser: Arc (Chrome-based)
  • Version: 1.2.0

Platform (Please tell us which deployment version you are using)
docker-standalone

Additional context
I am able to access the database from DBeaver using the connection info in dockers/examples/standalone/.env. So I cannot see what permissions are missing.

Only users with creator permission can view and create db connections on the interface. You can check the permission registration of the current account in space. (and we will optimize this error message

Thank you for explaining the reason. The point is, I have set up the docker standalone example by following the steps in the docs. I did not notice any advice about verifying or setting creator permissions. As the only user on the server, I would have expected to be a creator automatically.

I cannot find any permission settings at space level. How can I change the permissions to become creator?

You are right, you are already a creator, I just reproduced the problem, it is a bug