-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Any attempts to call another policy through ak_call_policy throw the following error:
'NoneType' object has no attribute 'pk'
To Reproduce
Steps to reproduce the behavior:
- Create a policy named
test-policywith the following expression:
return True- Create a second policy with the following expression:
result = ak_call_policy("test-policy")
return True- Run the policy on any object, through the "Test" action button.
Expected behavior
The test-policy should be called, and return a PolicyResult object as described here.
Version and Deployment (please complete the following information):
- authentik version: 2024.2.2
- Deployment: docker-compose
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working