home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1074177827

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/1675#issuecomment-1074177827 https://api.github.com/repos/simonw/datasette/issues/1675 1074177827 IC_kwDOBm6k_c5ABqcj 9599 2022-03-21T17:14:31Z 2022-03-21T17:14:31Z OWNER

Updated documentation: https://github.com/simonw/datasette/blob/e627510b760198ccedba9e5af47a771e847785c9/docs/internals.rst#await-ensure_permissionsactor-permissions

This method allows multiple permissions to be checked at onced. It raises a datasette.Forbidden exception if any of the checks are denied before one of them is explicitly granted.

This is useful when you need to check multiple permissions at once. For example, an actor should be able to view a table if either one of the following checks returns True or not a single one of them returns False:

That's pretty hard to understand! I'm going to open a separate issue to reconsider if this is a useful enough abstraction given how confusing it is.

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