Project

Profile

Help

Issue #7845

closed

The view_set parameter on AccessPolicy is not namespacing plugins

Added by mdellweg over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 86
Quarter:

Description

We need to use another deterninant here because e.g. PackageViewSet will appear in multiple plugins.

In: ContainerDistributionViewSet.view_name()
Out: 'distributions-container/container'

would do the job.

If no plugin is using AccessPolicy by now, we can just switch the lookup here. Otherwise we'd need to be very careful with deprecating it, because a failed lookup will result in "500" errors.

Also available in: Atom PDF