code: def test_edit_sql_link_not_shown_if_user_lacks_permission(
      permission_allowed,
  ):
      with make_app_client(
          config={
              "allow_sql": None
              if permission_allowed
              else {"id": "not-you"},
              "databases": {
                  "fixtures": {"queries": {"simple": "select 1 + 1"}}
              },
          }
      ) as client:
          response = client.get("/fixtures/simple")
          if permission_allowed:
              assert "Edit SQL" in response.text
          else:
              assert "Edit SQL" not in response.text
  
imports: from bs4 import BeautifulSoup
  from datasette.utils import allowed_pragmas
  from .fixtures import app_client, app_client_base_url_prefix, app_client_shorter_time_limit, app_client_two_attached_databases, make_app_client, METADATA
  from .utils import assert_footer_links, inner_html
  import copy
  import json
  import pathlib
  import pytest
  import re
  import urllib.parse
label_desc: Use image node_id 19 for calling a global function with example usage: test_edit_sql_link_not_shown_if_user_lacks_permission(permission_allowed) without return types