Actions
Issue #7312
closedAllow endpoints to dispatch tasks without authN
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 79
Quarter:
Description
The pulp_ansible plugin is failing because it has an endpoint that dispatches a task without a logged in user.
https://travis-ci.com/github/pulp/pulp_ansible/builds/179335202
Actions
Skip permissions assignment when there is no user
Allow
pulpcore.plugin.models.AutoAddObjPermsMixin.add_for_object_creator
to skip assignment of permissions if there is no known user. This allows endpoints that do not use authorization but still create objects in the DB to execute without error.closes #7312