Skip to content

Commit

Permalink
typo with index_permissions_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nilbacardit26 committed Mar 6, 2024
1 parent 8f6ee3b commit 2f36405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guillotina_audit/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def audit_object_modified(obj, event):
try:
if event.__providedBy__(IObjectPermissionsModifiedEvent) is True:
audit = query_utility(IAuditUtility)
if audit._settings.get("indexing_permission_changes", False) is True:
if audit._settings.get("index_permission_changes", False) is True:
audit.log_entry(obj, event)
elif event.__providedBy__(IObjectModifiedEvent):
audit = query_utility(IAuditUtility)
Expand Down
2 changes: 1 addition & 1 deletion guillotina_audit/tests/test_audit_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async def test_permissions_modified_with_indexing(guillotina_es):
),
)
assert status == 200
await asyncio.sleep(2)
await asyncio.sleep(3)
resp, status = await guillotina_es("GET", "/db/guillotina/@audit")
assert status == 200
# There should be one more document since indexing_permission_changes is True
Expand Down

0 comments on commit 2f36405

Please sign in to comment.