def METHOD_NAME(
        app, db, users, client, auth_headers_for_user, json_headers, cli_runner):
    superuser = users['superuser']
    owner = users['cms_user']
    superuser_headers = auth_headers_for_user(superuser) + json_headers
    # create schema
    schema_data = json.dumps(
        dict(name='test-schema', version='1.0.0',)
    )
    schema_resp = client.post('/jsonschemas/', data=schema_data, headers=superuser_headers)
    assert schema_resp.status_code == 200
    # new user
    user = users['lhcb_user']
    add_role_to_user(user, 'test-users@cern.ch')
    headers = auth_headers_for_user(user)
    res = cli_runner(
        'fixtures permissions -p read -r test-users@cern.ch --allow --schema test-schema')
    assert res.exit_code == 0
    # jsonschema access
    resp = client.get("/jsonschemas/test-schema", headers=headers)
    assert resp.status_code == 200