*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit c50357d4 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Add comment with reasoning behind the RecordOwners subclass

parent f7457219
Branches
Tags
No related merge requests found
...@@ -20,6 +20,8 @@ class RecordOwners(RecordOwners): ...@@ -20,6 +20,8 @@ class RecordOwners(RecordOwners):
def needs(self, **kwargs): def needs(self, **kwargs):
"""Enabling Needs.""" """Enabling Needs."""
if "record" in kwargs: if "record" in kwargs:
# currently (dec 2020), the default permission generator looks at the
# "owners" field, while rdm-records stores the owners in "access.owned_by"
needs = super().needs(**kwargs) needs = super().needs(**kwargs)
further_owners = [ further_owners = [
UserNeed(owner) UserNeed(owner)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment