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

Schema tables selection includes tables that the user does not have permissions on #15

Open
kevlarr opened this issue Jan 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kevlarr
Copy link
Collaborator

kevlarr commented Jan 7, 2023

Trying to view the table then results in something like...

        SELECT "name"::text FROM "public"."wat"
        ORDER BY "name"::text asc
        LIMIT 50
        

Database(
    PgDatabaseError {
        severity: Error,
        code: "42501",
        message: "permission denied for table wat",
        detail: None,
        hint: None,
        position: None,
        where: None,
        schema: None,
        table: None,
        column: None,
        data_type: None,
        constraint: None,
        file: Some(
            "aclchk.c",
        ),
        line: Some(
            3449,
        ),
        routine: Some(
            "aclcheck_error",
        ),
    },
)

... which then raises the question of how to handle varying permissions, ie. having only read permissions on one table - should it then hide the create/edit form and only allow browsing, or hide any table that doesn't have full usage?

@kevlarr kevlarr added the bug Something isn't working label Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant