Skip to content

Commit

Permalink
Merge pull request #46 from oarepo/krist/edit-html-link-permission-fix
Browse files Browse the repository at this point in the history
edit html link permission bug fix
  • Loading branch information
mesemus authored Dec 11, 2024
2 parents 1d5a86b + 7ece974 commit 1ff3989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oarepo_model_builder_drafts/datatypes/components/draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def process_links(self, datatype, section: Section, **kwargs):
link_class="RecordLink",
link_args=[
f'"{{+ui}}{html_url_prefix}{{id}}/edit"',
'when=has_draft() & has_permission("read_draft")',
'when=has_draft() & has_permission("update")',
],
imports=[
Import("invenio_records_resources.services.RecordLink"),
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-model-builder-drafts
version = 4.0.37
version = 4.0.38
description =
authors = Ronald Krist <[email protected]>
readme = README.md
Expand Down

0 comments on commit 1ff3989

Please sign in to comment.