Skip to content
Snippets Groups Projects
Verified Commit 01ddfbbc authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX test_permissions.py::test_query

parent 22760ada
No related branches found
No related tags found
No related merge requests found
Pipeline #35685 passed with warnings
......@@ -188,6 +188,7 @@ def test_basic_acl_stuff():
def test_query():
db.administration.set_server_property("QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS", "TRUE")
person = db.RecordType("TestPerson").insert()
db.Property("TestFirstName", datatype=db.TEXT).insert()
db.Property("TestConductor", datatype=person).insert()
......@@ -231,8 +232,6 @@ def test_query():
deny_permission(dan, "RETRIEVE:*")
switch_to_test_user()
# this fails if server is configured with
# QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS = FALSE
with raises(db.EmptyUniqueQueryError):
db.execute_query(
"FIND ENTITY TestExperiment WHICH HAS A TestConductor WHICH has a TestFirstName=Daniel",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment