view-database permission

Also now using 🔒 to indicate private resources - resources that
would not be available to the anonymous user. Refs #811
This commit is contained in:
Simon Willison 2020-06-07 20:50:37 -07:00
commit 9b42e1a4f5
8 changed files with 69 additions and 16 deletions

View file

@ -207,10 +207,7 @@ def test_row_page_does_not_truncate():
assert response.status == 200
assert_permissions_checked(
client.ds,
[
"view-instance",
("view-table", "table", ("fixtures", "facetable")),
],
["view-instance", ("view-table", "table", ("fixtures", "facetable")),],
)
table = Soup(response.body, "html.parser").find("table")
assert table["class"] == ["rows-and-columns"]