Skip to content

Commit

Permalink
datasette, not self.ds, in internals documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Apr 22, 2024
1 parent 7d6d471 commit 8f9509f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ This is useful when you need to check multiple permissions at once. For example,

.. code-block:: python
await self.ds.ensure_permissions(
await datasette.ensure_permissions(
request.actor,
[
("view-table", (database, table)),
Expand Down Expand Up @@ -420,7 +420,7 @@ This example checks if the user can access a specific table, and sets ``private`

.. code-block:: python
visible, private = await self.ds.check_visibility(
visible, private = await datasette.check_visibility(
request.actor,
action="view-table",
resource=(database, table),
Expand All @@ -430,7 +430,7 @@ The following example runs three checks in a row, similar to :ref:`datasette_ens

.. code-block:: python
visible, private = await self.ds.check_visibility(
visible, private = await datasette.check_visibility(
request.actor,
permissions=[
("view-table", (database, table)),
Expand Down

0 comments on commit 8f9509f

Please sign in to comment.