***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Invenio Config TUW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Center for Research Data Management
Invenio Config TUW
Commits
c50357d4
Commit
c50357d4
authored
4 years ago
by
Moser, Maximilian
Browse files
Options
Downloads
Patches
Plain Diff
Add comment with reasoning behind the RecordOwners subclass
parent
f7457219
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
invenio_config_tuw/permissions.py
+2
-0
2 additions, 0 deletions
invenio_config_tuw/permissions.py
with
2 additions
and
0 deletions
invenio_config_tuw/permissions.py
+
2
−
0
View file @
c50357d4
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment