home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1267708232

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1829#issuecomment-1267708232 https://api.github.com/repos/simonw/datasette/issues/1829 1267708232 IC_kwDOBm6k_c5Lj7FI 9599 2022-10-04T23:17:36Z 2022-10-04T23:17:36Z OWNER

Here's the relevant code from the table page:

https://github.com/simonw/datasette/blob/4218c9cd742b79b1e3cb80878e42b7e39d16ded2/datasette/views/table.py#L215-L227

Note how ensure_permissions() there takes the table, database and instance into account... but the private assignment (used to decide if the padlock should display or not) only considers the view-table check.

Here's the same code for the database page:

https://github.com/simonw/datasette/blob/4218c9cd742b79b1e3cb80878e42b7e39d16ded2/datasette/views/database.py#L139-L141

And for canned query pages:

https://github.com/simonw/datasette/blob/4218c9cd742b79b1e3cb80878e42b7e39d16ded2/datasette/views/database.py#L228-L240

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1396948693  
Powered by Datasette · Queries took 1.226ms · About: github-to-sqlite